DataGrid TextBox Question
Posted on 2004-09-27
I have a datagrid on my form. I also have the update/edit/cancel commands. I want to simply allow a user to click the edit button, then when the textboxes are displayed they can input information and click update. Here is my code...
Dim txt As String
txt = Convert.ToString(CType(e.Item.FindControl("DateSent"), TextBox).Text)
txtName.Text = txt
When I click update I get this error...
Object reference not set to an instance of an object.