|
|
Hi
Me with C#.net gridview, I am trying to move the selected row to one row up on uparrow keydown and is working fine but after moving the selected row to one row up still the selected row remains with the previous row, How can I make the selected row as the one which I had moved up so that on the next uparrow key press that row will move up
my code is
private void dgvQuotationEntry_KeyDown(object sender, KeyEventArgs e)
{
int Asciival = e.KeyValue;
string ID , PRDCode
int rowIndex = 0, rowCount;
rowIndex = dgvQuotationEntry.CurrentCell.RowIndex;
rowCount = dgvQuotationEntry.Rows.Count;
if (Asciival == 38)
{
if (dgvQuotationEntry.CurrentCell != null && rowIndex != 0)
{
ID = dgvQuotationEntry.CurrentRow.Cells[0].Value.ToString();
PRDCode = dgvQuotationEntry.CurrentRow.Cells[1].Value.ToString();
dgvQuotationEntry.Rows.RemoveAt(rowIndex);
dgvQuotationEntry.Rows.Insert(--rowIndex, ID , PRDCode);
}
}
}
Thanks & Regards
|
|
|
|
|
This should work
dgvQuotationEntry.Rows.Insert(--rowIndex, ID ,PRDCoded);
gvQuotationEntry.SelectedIndex=rowIndex;
|
|
|
|
|
but for datagridview there is not a property like SelectedIndex
Thanks & Regards
|
|
|
|
|
|
Please go through and obey Chris Maunder's message before posting a question. Explain you question properly or atleast some sense
|
|
|
|
|
do you know kanchan, abu and poonam cuz you all seem to be wanting the same thing.
Are you all in the 'Post a crap question twice' class together?
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
modified on Thursday, March 5, 2009 5:31 AM
|
|
|
|
|
an example of average retard[^]
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
musefan wrote: 'Post a crap question twice' class
|
|
|
|
|
|
|
|
now, lets dance
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
You're a moron. What the hell are you playing at ? There's plenty of paint app samples online, and yet you post these non questions. What abuot a drawarea tool ? What the hell IS a drawarea tool ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
can u please tell me how to create that?
|
|
|
|
|
there is use case diagrams tool,class diagram tools etc...
is there any demo project u can give me pls?
because i want impliment in my project..
|
|
|
|
|
|
Is that a new record or what?
"Five exclamation marks, the sure sign of an insane mind." - Terry Pratchett.
|
|
|
|
|
well it was clearly an atempt for 9... it must be harder than it looks
!!!!11whdekf.....
Damn, only managed four
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|
|
Vikram A Punathambekar wrote: Five exclamation marks, the sure sign of an insane mind
"And all those exclamation marks, you notice? Five? A sure sign of someone who wears his underpants on his head." - the very same
|
|
|
|
|
Kanchan Pawar wrote: urgent!!!!!!!!1
why so urgent ? an uncontrollable pee ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
pleas , i need code that display how i can read from fingerprinter
اريد كود كيفية القراءه من جهاز البصمه بلغة السي شارب
|
|
|
|
|
Fingerprint Reader[^]
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
what you need it for? why is it so important?
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|