Editable Datagrid?

Results 1 to 2 of 2

Thread: Editable Datagrid?

  1. #1
    Join Date
    Dec 1969

    Default Editable Datagrid?

    I&#039;m trying to make an editable Datagrid, using template columns. On the Update sub that is called, it searches the DataGridCommandEventArgs object (In this case, E) for the new text to update the database with. For example :<BR><BR>Dim NewText As TextBox<BR><BR>NewText = E.Item.FindControl("txtName")<BR><BR>Okay, this works fine, the FindControl returns a textbox and assigns it to NewText. However, when I try and access NewText (NewText.Text), it returns the original value of that cell, not the new data that the user typed in! What am I missing? Do I have to bind the data somehow? Is it even possible to access the textbox that the user is typing in, in the datagrid, or is that something that won&#039;t be available until Beta 2?<BR><BR>Thanks.<BR><BR>-Matt

  2. #2
    Rob Guest

    Default RE: Editable Datagrid?

    Uh<BR>couple of questions<BR><BR>1 - Why do you want to access that value with NewText.Text<BR>when you aleady have with FindControl?<BR><BR>2 - If it were that easy you would not need find control<BR><BR>Tell us a little more<BR><BR>Rob<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts