hi. thank you for helping. Yes I use QueryCellStyleInfo. But my problem is what row indexer to use in accessing datatable
DataRow dr = DataTable.Rows[e.TableCellIdentity.RowIndex - 1]
this doesn't give the correct row position...
>Hi KenP,
Thanks for your interest in syncfusion Products.
To set the individual cell style properties, you need to handle either the QueryCellStyleInfo or the TableControl's PrepareViewStyleInfo.
private void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
{
if(e.TableCellIdentity.RowIndex > 0 && e.TableCellIdentity.ColIndex > 0)
{
if(flag)
{
Table table = this.gridGroupingControl1.Table;
Element el = table.DisplayElements[e.TableCellIdentity.RowIndex];
Record r = el.ParentRecord;
int dataRowPos = table.UnsortedRecords.IndexOf(r);
if(dataRowPos == 5)
{
if(e.TableCellIdentity.ColIndex == 4)
{
e.Style.CurrencyEdit.CurrencySymbol = "CHF ";
e.Handled = true;
}
}
}
}
}
Sample:
Here is the sample.Let us know if this helps.
Regards,
Nisha