This is a migrated thread and some comments may be shown as answers.

Insertion of new rows in a hierarchical gridview

1 Answer 72 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Angshuman
Top achievements
Rank 2
Angshuman asked on 03 Feb 2011, 07:44 AM
I am having a hierarchical gridview, where I am having a gridview nested into another.

When am trying to insert a new item in the OUTER grid by pressing 'Insert', I do get a new item, but I am not able to insert nested gridview items into it. (Basically I was expecting to see an empty instance of the nested gridview appearing when I insert an item in the outer gridview. ) How can I get the nested gridview for the new items inserted in the outer gridview?



1 Answer, 1 is accepted

Sort by
0
Accepted
Angshuman
Top achievements
Rank 2
answered on 03 Feb 2011, 07:53 AM
I found the problem - I had a piece of of code in the DataLoading handler which was stripping the expander off the items which had zero sub items. Since the newly added item did not have any subitems, it was not getting expanded. Once I removed that check, things are working fine!
Tags
GridView
Asked by
Angshuman
Top achievements
Rank 2
Answers by
Angshuman
Top achievements
Rank 2
Share this question
or