Hi Trevor,
To format the Cell Text ,you need to handle either QueryCellFormattedText Eventhandler/ DrawCellDisplayText Event Handler. Refer to modified sample for more details
For DrawCellDisplayText Event Handle:
private void gridDataBoundGrid1_DrawCellDisplayText(object sender, Syncfusion.Windows.Forms.Grid.GridDrawCellDisplayTextEventArgs e)
{
GridModel model = this.gridDataBoundGrid1.Model;
if(e.Style.CellIdentity.RowIndex > 0 && e.Style.CellIdentity.ColIndex == 1)
{
int keyColIndex = model.NameToColIndex("ParentID");
string key = model[e.Style.CellIdentity.RowIndex, keyColIndex].Text;
e.Style.Description = key;
if (key != null)
{
object value = celltable[key];
if (value != null)
e.DisplayText = value.ToString()+ e.DisplayText;
}
}
}
For QueryCellFormattedText Event Handler:
Refer this KB article - http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=333
Let me know if you need futher assistance,
Regards,
Madhan.
GridTextBoxColumnDemo0.zip