Hi,
I have information displayed on the grid, which has a template to be displaying additional information.
The additional information may not be applicable based on the dates of the parent row.
I have tried to hide the rows, on the on the CreateRow event. The problem here, is then when I expend a parent row, once the child row get's hidden once, it does not get examined for creation if I expand another parent row.
So for example :
1. Parent collection is a list of strings < "two" , "one" > . Child collection is < " 1, " 2", " 3">.
2. Let's say that I have bound the parent and the child collection using the Template Paradime, on some column with the name "ID", which both template and grid have and it is being populated.
3. Now if the user expands the row containing " two" I want to show only child collection < " 1", "2" > . If the user clicks on the row containing " one ", I want the sub grid to show < "1","3" >
I have tried to set the child rows as visible based on some condition on the CreateRow event, but the rows that were marked as hidden, don't get considered if the user clicks on another parent row. In our example the child row with value "1", once is marked as hidden ( e.RowInfo.IsVisible = false; ) , it remains hidden and it never get's considered when the user clicks on the row with string " one ".
Is there a way to do this, in the grid ?
I have information displayed on the grid, which has a template to be displaying additional information.
The additional information may not be applicable based on the dates of the parent row.
I have tried to hide the rows, on the on the CreateRow event. The problem here, is then when I expend a parent row, once the child row get's hidden once, it does not get examined for creation if I expand another parent row.
So for example :
1. Parent collection is a list of strings < "two" , "one" > . Child collection is < " 1, " 2", " 3">.
2. Let's say that I have bound the parent and the child collection using the Template Paradime, on some column with the name "ID", which both template and grid have and it is being populated.
3. Now if the user expands the row containing " two" I want to show only child collection < " 1", "2" > . If the user clicks on the row containing " one ", I want the sub grid to show < "1","3" >
I have tried to set the child rows as visible based on some condition on the CreateRow event, but the rows that were marked as hidden, don't get considered if the user clicks on another parent row. In our example the child row with value "1", once is marked as hidden ( e.RowInfo.IsVisible = false; ) , it remains hidden and it never get's considered when the user clicks on the row with string " one ".
Is there a way to do this, in the grid ?