all groups > asp.net datagrid control > november 2004 >
You're in the

asp.net datagrid control

group:

DataGrid controls


DataGrid controls Bonj
11/11/2004 7:30:01 AM
asp.net datagrid control: When handling the datagrid's OnEditCommand handler, the
DataGridCommandEventArgs has an Item property, which has a collection of
controls. One of these contains three subcontrols, the middle one (id 1 of 0,
1 and 2) of these subcontrols is the control (textbox) that contains the
value I want to update the datagrid's underlying data with.

My question is, short of doing two loops everytime to find the right
control, what is the best way of doing this?
Re: DataGrid controls Philip Rieck
11/11/2004 10:23:35 AM
Look at the FindControl method (e.item.findcontrol) which looks for multiple
layer sub-controls of the current control by ID



--
-Philip Rieck
http://philiprieck.com/blog/

-
[quoted text, click to view]

Re: DataGrid controls Bonj
11/11/2004 10:30:10 PM
Thanks!

[quoted text, click to view]

AddThis Social Bookmark Button