Bind with GridView
-
I am binding two template fields,with two buttons like edit and delete,with gridview. Now during run time, I am binding a datatable with gridview.(say about 5 rows.) Now,when i click on edit button,i want the rowindex of the clicked row. I tried this by doing, gridView1.SelectedRow.RowIndex. But it threw error only. Please advice, that what may i do. Thanks.
Muthu.G
-
I am binding two template fields,with two buttons like edit and delete,with gridview. Now during run time, I am binding a datatable with gridview.(say about 5 rows.) Now,when i click on edit button,i want the rowindex of the clicked row. I tried this by doing, gridView1.SelectedRow.RowIndex. But it threw error only. Please advice, that what may i do. Thanks.
Muthu.G
johnmuthu wrote:
I tried this by doing, gridView1.SelectedRow.RowIndex. But it threw error only.
What is the error? If you don't explain what the problem is, it's unlikely someone is going to be able to help you find a solution.
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
-
I am binding two template fields,with two buttons like edit and delete,with gridview. Now during run time, I am binding a datatable with gridview.(say about 5 rows.) Now,when i click on edit button,i want the rowindex of the clicked row. I tried this by doing, gridView1.SelectedRow.RowIndex. But it threw error only. Please advice, that what may i do. Thanks.
Muthu.G
Which event are you using to capture the Edit button's click?
Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot