all groups > asp.net datagrid control > september 2005 >
You're in the

asp.net datagrid control

group:

Detect change to data in an ubound datagrid


Detect change to data in an ubound datagrid Mark
9/22/2005 12:00:00 AM
asp.net datagrid control:
Hi

Sorry if this is a bit obvious but I'm new to the datagrid ... :@)

I have an unbound grid which contains a hidden column holding the primary
key of the row. I would like to detect when the user has finished updating a
record in order that I can update the source data.

Can someone point me at the correct event please and the easiest way to
access the contents of the current rows cells.

Thanks very much

Mark

Re: Detect change to data in an ubound datagrid Brock Allen
9/22/2005 2:11:09 PM
[quoted text, click to view]

You don't have to do this. There's a DataKeyField property on te grid to
manage this for you.

-Brock
DevelopMentor
http://staff.develop.com/ballen

Re: Detect change to data in an ubound datagrid Mark
9/22/2005 9:51:00 PM
Thanks Brock... I'll check it out tomorrow :@)

What about an after update event though?

Cheers

Mark

[quoted text, click to view]

AddThis Social Bookmark Button