Hi all,
I can return the rowindex using SelectedRow or SelectedIndex
But, how do I get my code to return the cell or column index of a selected
row in my gridview?
Thank Advance,
Mala
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Hirendra SisodiyaPosted Mar 17, 2010, 6:55 AM
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
int CellIndex = e.ColumnIndex;
}
thanks
Amit ChoudharyPosted Mar 18, 2010, 1:24 AM
here is list of events supported by Gridview in asp.net 3.5
you any that suited your requirements.
mark as answer if it helps.
Manath PathanaPosted Mar 17, 2010, 9:41 PM
how about event of this code? because i write it in
asp.net. in gridview don't have this event it.
it in event "onselectedindexchanged"?
please tell me.
Thank,
Mala