Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Nested Grids for Hierarchical Data

Reply
Thread Tools

Nested Grids for Hierarchical Data

 
 
Yasir Hussain
Guest
Posts: n/a
 
      10-07-2003
Hope someone can shed some light on the follow issue.
With regards to the excellent article by Dino Esposito on Nested
DataGrids, http://msdn.microsoft.com/msdnmag/is...e/default.aspx
,
I tried to take that example and build on it and take it a little
further.

For those you havnt read the article yet, a summary:
Outer Datagrid with a custom column that expands/Coppalses a DataRow
that contains an inner DataGrid (basically a Master/Details View).
DataRow is deleted of its current contents when expand is clicked,
then new datable is made to host the preview row information as a
header and then a new DataGrid is created and databound with a
DataRelation.

Now the inner grid events work fine interms of Paging. The problem
arrises when you try to edit the inner Datagrid. Im quite sure this
happens because when you click edit on the EditColumn, the datagrid
then creates the new column with the Cancel and Update Controls (ie
dynamically). This, for lack of a better term, messes up the whole
control tree for the page and events dont sync with the right
controls. THe main issue i have is when i click on edit, on postback,
the datagrid enters edit mode, but the editcolumn for the inner
datagrid does not get rendered anymore. Doing just a Trace inside the
inner datagrid edit event handler doesnt cause any problems, its just
when you acutally set the Edit item index that things go crazy. I have
tried to create a custom inner datagrid and wrote my own events and
delegates and tried to bubble events to the next control and all the
way to the main page , but nothing seems to work.

I know this all sounds rather confusing, but any help would be
appreciated.
If someone really wants to go through the code, ill paste it next
post.

Thanx in advance all.

Yasir
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Facing problem while Accessing the chile grids in nested GridView Mudassar ASP .Net 0 07-10-2006 07:40 AM
Facing problem while Accessing the chile grids in nested GridView Mudassar ASP .Net 0 07-10-2006 07:31 AM
Nested Repeaters: ItemDataBound fires in reverse order (hierarchical data) KJ ASP .Net 0 06-21-2005 10:11 PM
Nested Grids for Hierarchical Data David Branch ASP .Net Datagrid Control 1 12-09-2003 09:20 AM
Nested Grids for Hierarchical Data Yasir Hussain ASP .Net Datagrid Control 0 10-07-2003 06:58 PM



Advertisments