hi,
thanks for the sample. But i have a slightly tricky problem. I tried to figure that out my self but couldn't.
The problem is that i am using nested tables. and the nested entity is having the bool property cancelled.
i want the parent record to be striked off if one of the child record has the cancelled propert set to true.
Thanks in advance
>Hi Dinesh,
The QueryCellStyleInfo event handler can be used for this. The following is the code snippet.
void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if (e.TableCellIdentity.DisplayElement.Kind == DisplayElementKind.Record)
{
Element el = e.TableCellIdentity.DisplayElement;
Record rec = el.ParentRecord;
bool chk = (bool)rec.GetValue("Cancel");
if(chk)
e.Style.Font.Strikeout = true;
}
}
Check the attached sample for more details.
sample:
SampleThe TableModel.RowStyles will not work for GridGroupingControl. To format things and apply style settings, QueryCellStyleInfo is the event to be handled.
Best Regards,
S.Shyam.