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.
Syncfusion Feedback

Editing record preview row

Thread ID:

Created:

Updated:

Platform:

Replies:

126068 Sep 21,2016 03:50 PM UTC Sep 22,2016 01:30 PM UTC Windows Forms 1
loading
Tags: GridGroupingControl
Carlos
Asked On September 21, 2016 03:50 PM UTC

Hi,

Is it posible to edit content of a "record preview row" in GGC ?

Thank you.

Amal Raj Umapathy Selvam [Syncfusion]
Replied On September 22, 2016 01:30 PM UTC

Hi Carlos, 
 
Thanks for using Syncfusion products. 
 
By default, we cannot edit the cell values of RecordPreviewCell at run time. The cell values of the RecordPreviewCells will only be shown as preview. The default cell value of RecordPreviewRow is “Preview”. However, we can change the cell values through QueryCellStyleInfo events. We have already provided dashboard sample regarding this. Please refer to the below sample, 
 
Code Example 
//Event Subscription. 
this.gridGroupingControl1.QueryCellStyleInfo += new GridTableCellStyleInfoEventHandler(gridGroupingControl1_QueryCellStyleInfo); 
 
// QueryCellInfo even is hooked to set the values. 
private void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e) 
{ 
    switch (e.TableCellIdentity.TableCellType) 
    { 
        case GridTableCellType.RecordPreviewCell: 
            { 
                GridGroupingControl groupingControl = (GridGroupingControl)sender; 
                GridTable table = groupingControl.Table; 
                GridRecord record = e.TableCellIdentity.DisplayElement.ParentRecord as GridRecord; 
                if (record != null) 
                    e.Style.CellValue = record.GetValue("Notes").ToString(); 
                else 
                    e.Style.CellValue = "No Notes."; 
                break; 
            } 
    } 
} 
 
Dashboard Sample Location 
<Installed_Location>\Syncfusion\EssentialStudio\<Version_Number>\Windows\Grid.Grouping.Windows\Samples\Layout Customization\Record Customization Demo\ 
 
Regards, 
Amal Raj U. 


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.

Warning Icon 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.Close Icon

;