Retrieving values from DataGrid row before they are changed

G

greenb

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.
 
M

Michael Baltic

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.
--
Staff Consultant II
Enterprise Web Services
Cardinal Solutions Group

Future Business Model
Loan Origination Services
National City Mortgage
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top