Greetings.
The easiest way to read the value from the gridview field is to write:
your_grid_name.SelectedRow.Cell (* number_of_index *). Text
In my case, this is:
Remove employer name as String
employer_name = poslodavac_grid.SelectedRow.Cells (1) .Text
Just remember that the first index of the cell is zero, and this is not considered the asp: CommandField ShowSelectButton tag as the first ...
Senib source share