Hi Simon,
If you rebind the datagrid's data source, the user entered
value is overwrited by data source (old) value. In order
to get user entered value, don't run command
datagrid.DataSource = dataobject
before button_click event.
HTH
Elton Wang
>-----Original Message-----
>I have TextBox column in datagrid.
>I would like to update database with values when user
click on button
>(outside datagrid).
>
>Dim cell As TableCell=datagrid.Items(row).Cells(col)
>textbox=CType(cell.FindControl("TextBox1"), TextBox)
>
>If user change text of TextBox in one column, command:
>textbox.Text
>
>display old value (not entered).
>How can I find out changed text.
>
>Thanks for help!
>
>Simon
>
>
>.
>