471,317 Members | 1,796 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,317 software developers and data experts.

What is the hierarchy here?


To update the changes in the WEB Datagrid I use the structure taken from the

private void dgCompany_UpdateCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)


TextBox CompanyBox = (TextBox)e.Item.Cells[2].Controls[0];

I try to get the hierarchy starting at Item.Cells[2].Controls[0]

I could not find the Cells and then Controls collections inside the datagrid

Can someone explain to me how I can get to the controls in the end, as
Controls[0] means Textbox, Controls[1] means Checkbox, or at least this is
what I presume.


Feb 14 '06 #1
0 907

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

24 posts views Thread by Xah Lee | last post: by
56 posts views Thread by Xah Lee | last post: by
18 posts views Thread by Xah Lee | last post: by
2 posts views Thread by Do | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.