|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Retrieving values from DataGrid row before they are changedI have an editable datagrid and need to retrieve the values of the cells
before they are changed. I tried to read the text values from the cells in the ItemCommand event and the OnEdit event but they are always empty strings. Does anyone know the best way to do this? All the other datagrid functionality is working correctly (edit, update, delete, and paging). Thanks for your help. On the client side, if you can determine the id of the cell you are about to
edit, you can use getElementById to determine the value before you edit it. The ASP:DataGrid doesn't have this functionality built in by default. A 3rd party grid would have a full client side object model that you can access (Infragistics, ComponentOne). On the server side, you would need to find the cell you are about to edit in the databound grid, not the eventargs that are being passed to your function. -- Show quoteHide quoteStaff Consultant II Enterprise Web Services Cardinal Solutions Group Future Business Model Loan Origination Services National City Mortgage "greenb" wrote: > I have an editable datagrid and need to retrieve the values of the cells > before they are changed. I tried to read the text values from the cells in > the ItemCommand event and the OnEdit event but they are always empty strings. > Does anyone know the best way to do this? > > All the other datagrid functionality is working correctly (edit, update, > delete, and paging). > > Thanks for your help. > > > >
I guess this can't be done can it ?
Unhappy call to a 2nd dataItem in ItemTemplate of an asp:TemplateC Webcontrol Designer Awareness... Re: accessibility and asp:button OWC11 (connect Spreadsheet + Chart) Page is not submitted using Client side validation of.NET validato Button to link with DataGrid Register directive for custom web control in VS 2005 Beta 2 accessing a specific cotrol from web DataGrid control. Textbox question (v2.0) |
|||||||||||||||||||||||