Gridview selected row issue
ASP.NET
4
Posts
3
Posters
0
Views
1
Watching
-
Hi All, Im trying to get the value of the selected row in my gridview:
lblErrorImport.Text = gvColumns.SelectedRow.Cells[1].Text;
Bud im getting this error: Object reference not set to an instance of an object. How can i fix this? Thanks. -
Hi All, Im trying to get the value of the selected row in my gridview:
lblErrorImport.Text = gvColumns.SelectedRow.Cells[1].Text;
Bud im getting this error: Object reference not set to an instance of an object. How can i fix this? Thanks. -
Something is null. Debug and check. I guess it should be selected row.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!