AD
Administrator
Syncfusion Team
May 24, 2006 10:12 AM UTC
Hi Badri,
The intent behavior can be achieved be setting the BorderMargins property for the RecordPreviewRow cells. Below is a code snippet.
private void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
{
if(e.TableCellIdentity.TableCellType== GridTableCellType.RecordPreviewCell)
{
GridGroupingControl groupingControl = (GridGroupingControl) sender;
GridTable table = groupingControl.Table;
GridRecord record = (GridRecord) e.TableCellIdentity.DisplayElement.ParentRecord;
e.Style.CellValue = record.GetValue("Notes").ToString();
e.Style.BorderMargins.Left = 50;
}
}
Regards,
Calvin.