I am using the GridView - AutoGenerateSelectButton = "True"
to select the row in order to get the Column 1 cell value.
I have tried:
GridViewRow row = dgCustomer.SelectedRow;
TextBox1.Text = "Cell Value" + row.Cells[1].Text + "";
And it writes the "Cell Value" but nothing else.
I finally was able to get the number of the row (index) but not the cell value.
GridViewRow row = dgCustomer.SelectedRow;
TextBox1.Text = row.RowIndex.ToString();
I have tried:
TextBox1.Text = dgCustomer.Rows[row.RowIndex].Cells[1].Text;
and still returns the index row.
Any other suggestions? Thank you!