Different style for child tables

I have a GridGrouping control that displays a three level hierarchy: a master table, a nested (child) table and another table that is child of the second.

I'm trying to color the rows differently for each table.

How can I find out which table I'm asked for in the QueryCellInfo event?

Thanks.
Regards
Raul


2 Replies

RR Raul Rosenthal November 2, 2010 10:24 AM UTC

Sorry, this message was intented for the WinForms forum.



NR Nirmal Raja Syncfusion Team November 8, 2010 08:58 AM UTC

Hi Raul,

Thank you for your interest in Syncfusion product.

The TableDescriptor of the grid is used to provide the appearance to the grid, which leads to the style info for the particular descriptor. The different descriptor of each table can be retrieved from the Relations collection under each table descriptor.

Please refer the code below: this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.BackColor = Color.Yellow;
this.gridGroupingControl1.TableDescriptor.Relations[0].ChildTableDescriptor.Appearance.AnyRecordFieldCell.BackColor = Color.Red;
this.gridGroupingControl1.TableDescriptor.Relations[0].ChildTableDescriptor.Relations[0].ChildTableDescriptor.Appearance.AnyRecordFieldCell.BackColor = Color.Blue;


Let me know if you have any concern.

Regards,
Nirmal


Loader.
Up arrow icon