Ask a Question related to ASP.NET General, Design and Development.
-
Mark Davidson #1
Retrieving values from DataGrid row in edit mode.
Hi,
I have a datagrid with template columns. Everything is OK except that when I put any of the row in edit mode and try to retrieve the new values, I get the old values instead of the new ones. The line of code in UpdateCommand handler of the grid is:
strUserID = CType(e.Item.FindControl("txtUserID"), TextBox).Text
I also tried the following but no luck:
strUserID = CType(e.Item.Cells(2).FindControl("txtUserID"), TextBox).Text
and
strUserID = CType(e.Item.Cells(2).Controls(0), TextBox).Text
Any ideas would be much appreciated.
Mark
Mark Davidson Guest
-
Retrieving values from DataGrid row before update
I have an editable datagrid and need to retrieve the values of the cells before they are changed by the user. I tried to read the text values from... -
How to load datagrid in edit mode?
Hi, Is there any way I can load a datagrid in edit mode (example : 2nd row should be in edit mode whe the page loads for the first time) when a... -
Would like to load a datagrid already in edit mode instead of having the user click the edit button
Now my asp.net datagrid shows an edit button and clicking it puts the datagrid in edit mode. I would like to: 1) possilby load the page already... -
DataGrid Edit Mode
Hi How can I programmatically switch a DataGrid into Edit Mode? I have a datagrid with no Edit / Delete / Update command buttons, only a... -
How to set up validators for edit mode of a datagrid?
How do you set up the validators so they "watch" entries made while the datagrid is in edit mode? If a custom validator is required, is there a...



Reply With Quote

