Hi there,
I'm currently evaluating the Telerik RadControls for WinForms and I'm trying to accomplish something with the DataGrid component. I am wondering if there is any way to specify different child templates for the top level rows in the grid.
I have a dataset that consists of a List<ICommonData>. I have 2 classes (say ClassA and ClassB) that implement ICommonData. My datasource contains a list of both ClassA and ClassB objects. The parent rows of the grid show all the properties declared in ICommonData. What I want is when the user expands the parent row, I want them to see a sub grid that shows other ClassA or ClassB columns depending on what data object that row was bound to. Basically I need the ability to specify dynamically which template each row uses when displaying the child grid.
Is there any way to do this?
Thanks,
Josh
I'm currently evaluating the Telerik RadControls for WinForms and I'm trying to accomplish something with the DataGrid component. I am wondering if there is any way to specify different child templates for the top level rows in the grid.
I have a dataset that consists of a List<ICommonData>. I have 2 classes (say ClassA and ClassB) that implement ICommonData. My datasource contains a list of both ClassA and ClassB objects. The parent rows of the grid show all the properties declared in ICommonData. What I want is when the user expands the parent row, I want them to see a sub grid that shows other ClassA or ClassB columns depending on what data object that row was bound to. Basically I need the ability to specify dynamically which template each row uses when displaying the child grid.
Is there any way to do this?
Thanks,
Josh