J
Jonathan Wood
I'm displaying data in a GridView that allows user to select a row. When a
button is clicked, I need to locate the selected row.
The problem is that I need an ID value from the selected row, but I do not
want to display that ID value in the grid. I tried creating a hidden column,
but I can't seem to be able to access it when the button is clicked. (At
least, hidden columns do not appear to show up in the Cells collection of
the selected row.)
Is there any way to get an ID for the selected row without displaying that
ID to the user?
Also, does anyone know if there's any way to populate a GridView control
without using the DataSource property, by just programatically adding rows
to the grid?
Thanks.
button is clicked, I need to locate the selected row.
The problem is that I need an ID value from the selected row, but I do not
want to display that ID value in the grid. I tried creating a hidden column,
but I can't seem to be able to access it when the button is clicked. (At
least, hidden columns do not appear to show up in the Cells collection of
the selected row.)
Is there any way to get an ID for the selected row without displaying that
ID to the user?
Also, does anyone know if there's any way to populate a GridView control
without using the DataSource property, by just programatically adding rows
to the grid?
Thanks.