I have figured out how to format a single table in a Datagrid control by formatting the individual columns and added them to a DatagridTableStyle.
What I would like to do now is setup 2 DatagridTableStyles. One for a parent table and the other for a child table included in a DataSet.
The datagrid initially loads the parent table and I can apply the DatagridTableStyle for this table. When you click on the "+" sign which is beside each row in the parent table it shows the "DataRelation" name as a "hotlink" which you can click on to load the associated child records from the Child Table.
Does clicking on the "DataRelation" hotlink raise an event that I use to change the formatting to the DatagridTableStyle for the Child table rows that will be loaded?
When the Child Table Rows are loaded there is an "arrow" in the DataGrid caption area that allows you to navigate back to the parent rows. Can I capture this event so I can then change the formatting back to the DatagridTableStyle for the parent table.
I really like this feature of the Datagrid control that allows you to view child rows associated with a parent row and I can see how it can be very useful in applications if I can handle the formatting issue.
Any help would be appreciated. Thanks!