We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon