Problem :
The Child records in Winforms radgrid hierarchy should show at the first click expand and it shouldn't collapse automatic.
At Design Time, I create Strongly Typed dataset containing two tables
Master table--Company
Child Table---Branch
having Relation in these tables by "Company Id"
At Form load , if we use "AutoGenerateHierarchyFromDataSet" , it takes More time
as it has almost 10000 Company Records and 40000 Branch Records.I think The RadGrid take time to rearrange the records according To hierarchy.
So I tried another alternative:
At time of loading the form ,I fill only Company table.
When I expand any Company ID row, I fill the Branch table only for selected(Iscurrent row) Company Id .Then refresh the Radgrid by
radGrid.Rows(RowIndex).ViewInfo.UpdateView()
As well as
radGrid.GridElement.Update(True)
But the problem is, when i expand the row first time ,The row expands, But does't show branch records for current row Comapny ID.After some time the row automatically collapse.
When I expand ,the same row second time ,it shows the branch(child) records .
This on demand fascility will be helpful for handling large data.
Kindly see in this.
Thanks
sagar
The Child records in Winforms radgrid hierarchy should show at the first click expand and it shouldn't collapse automatic.
At Design Time, I create Strongly Typed dataset containing two tables
Master table--Company
Child Table---Branch
having Relation in these tables by "Company Id"
At Form load , if we use "AutoGenerateHierarchyFromDataSet" , it takes More time
as it has almost 10000 Company Records and 40000 Branch Records.I think The RadGrid take time to rearrange the records according To hierarchy.
So I tried another alternative:
At time of loading the form ,I fill only Company table.
When I expand any Company ID row, I fill the Branch table only for selected(Iscurrent row) Company Id .Then refresh the Radgrid by
radGrid.Rows(RowIndex).ViewInfo.UpdateView()
As well as
radGrid.GridElement.Update(True)
But the problem is, when i expand the row first time ,The row expands, But does't show branch records for current row Comapny ID.After some time the row automatically collapse.
When I expand ,the same row second time ,it shows the branch(child) records .
This on demand fascility will be helpful for handling large data.
Kindly see in this.
Thanks
sagar