void gridDataBoundGrid1_DrawCellDisplayText(object sender, Syncfusion.Windows.Forms.Grid.GridDrawCellDisplayTextEventArgs e)
{
if (e.ColIndex == gridDataBoundGrid1.Binder.NameToColIndex("Col2"))
{
e.DisplayText = "someComputedTextFrom " + e.Style.Text;
}
}
private void gridGroupingControl1_TableControlDrawCellDisplayText(object sender, GridTableControlDrawCellDisplayTextEventArgs e)
{
//make Col1 be 2 times the value in Col2
GridTableCellStyleInfo style = (GridTableCellStyleInfo)e.Inner.Style;
if(style.TableCellIdentity.Column != null
&& style.TableCellIdentity.Column.MappingName == "Col1")
{
GridRecord rec = style.TableCellIdentity.DisplayElement.GetRecord() as GridRecord;
if(rec != null)
{
double d = (double) rec.GetValue("Col2");
e.Inner.DisplayText = string.Format("{0}", 2 * d);
}
}
}