GridGroupingControl - Indent Auto Preview Rows

Hi, We are using syncfusion v3.2.1.0. How can I indent autopreview rows? similer to outlook autopreview. Rgds Rajani Kanth

1 Reply

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.

Loader.
Up arrow icon