Hi,

I'm new to ASP.NET and I'm having the following problem: I have a GridView
where the user can update any row he wants by clicking on a LinkButton
(Edit). The code for getting the selectedRow is like this:

Dim selectedRow As GridViewRow = MyGridView.SelectedRow
Dim myTextBox As TextBox = selectedRow.FindControl("myTextBox ")
Dim info As String = myTextBox.Text

However, my selectedRow is always Nothing. Does anyone knows how can I get
the selectedRow in a different way? Any help would be greatly appreciated!

Thanks,
Ana

Reply via email to