Hi,
I am using GridView control to display data in a nested grid view format. I am loading data dynamically as shown in 'Load On Demand' sample for GridView control. I need to display the data in nested grid view format and for that I am creating a child template and adding it to 'Templates' collection in RowSourceNeeded event handler. Upt o this point, everything works fine.
The problem I am facing is I need to display a checkbox column only at the leaf level in the nested grid. And the leaf node can appear at different level for each parent node. For e.g. node 1 can have just 1 child which is leaf as well. Node 2 can have 1 child which further has 1 child [grandchild], which is the leaf node.
If I add GridViewCheckBoxColumn into child template, it gets displayed for all the nested grids, which is not required.
Can you please advise me how to display checkbox column only for the leaf nodes in all the nested grids in GridView control.
Thanks.
I am using GridView control to display data in a nested grid view format. I am loading data dynamically as shown in 'Load On Demand' sample for GridView control. I need to display the data in nested grid view format and for that I am creating a child template and adding it to 'Templates' collection in RowSourceNeeded event handler. Upt o this point, everything works fine.
The problem I am facing is I need to display a checkbox column only at the leaf level in the nested grid. And the leaf node can appear at different level for each parent node. For e.g. node 1 can have just 1 child which is leaf as well. Node 2 can have 1 child which further has 1 child [grandchild], which is the leaf node.
If I add GridViewCheckBoxColumn into child template, it gets displayed for all the nested grids, which is not required.
Can you please advise me how to display checkbox column only for the leaf nodes in all the nested grids in GridView control.
Thanks.