I have a gridview that has some columns that are not visible that I need to read the value from on button click... The two columns are simple bound columns... I know how to read the values from template columns... but I think the page would be heavier if I convert them to template columns... I just want to know what is the best practice in this case...
I get a datatable and bind it to the gridview.
The user can select some or all rows (by checking the checkbox column).
The user clicks a button in which case I am iterating through the rows and finding the ones that are checked (I have this working)... reading the two values and saving the record.
Its the reading values part that I have questions on... but would appreciate any comments on how to get this done in a better way.
Start Free Trial