Hello,
could you please tell me how can i change the style of all of the grouping drop area , i want to change also the Text,Fonts& Colors of the childTables in this area,
i tried the following code (but it does not change the styles of the child tables, i mean it works only for the parent table):
public class GroupDropAreaModelExtended : GridGroupDropAreaModel
{
protected override void OnQueryCellInfo(GridQueryCellInfoEventArgs e)
{
base.OnQueryCellInfo (e);
if (HasTable)
{
GridTable table = Table;
int num = ColIndexToField(e.ColIndex);
if (e.RowIndex == 2 && table != null)
{
if (e.ColIndex == 2)
{
e.Style.Text = "TiTleXXX";//table.TableDescriptor.Name;
e.Style.Font.Bold = true;
e.Style.BackColor = SystemColors.ControlDark;
e.Style.HorizontalAlignment = GridHorizontalAlignment.Left;
e.Style.CellType = "Static";
e.Style.Enabled = false;
}
else if (e.Style.Text.StartsWith("Drag a"))
{
e.Style.Text = "Do you own thing.";
}
e.Handled = true;
}
}
}
public GroupDropAreaModelExtended(GridTableModel tm) : base(tm)
{
}
}
Thanks in advance
groupingDropArea.zip