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.
Unfortunately, activation email could not send to your email. Please try again.

GridGroupingControl - Indent Auto Preview Rows

Thread ID:

Created:

Updated:

Platform:

Replies:

44430 May 23,2006 01:55 PM May 24,2006 06:12 AM Windows Forms 1
loading
Tags: GridControl
Badri Rajani Kanth
Asked On May 23, 2006 01:55 PM

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

Administrator [Syncfusion]
Replied On May 24, 2006 06:12 AM

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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;