Tuesday, 3 September 2013

Copy value from in a GridView into a TextBox

Copy value from in a GridView into a TextBox

I have a GridView from where I want to get a text value from cell in
column 26 in the selected row into an TextBox (named txtResult). Cell is
not visible (its Visible property is false).
I tried this:
txtResult.Text = grdMyGrid.SelectedRow.Cells[26].Text;
Thanks for your help in advance!

No comments:

Post a Comment