Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141270 | Dec 3,2018 02:21 PM UTC | Dec 4,2018 06:26 AM UTC | WinForms | 1 |
![]() |
Tags: GridGroupingControl |
this.gridGroupingControl1.SourceListRecordChanged += GridGroupingControl1_SourceListRecordChanged;
this.gridGroupingControl1.QueryCellStyleInfo += GridGroupingControl1_QueryCellStyleInfo;
List<Record> newRecords = new List<Record>();
private void GridGroupingControl1_SourceListRecordChanged(object sender, Syncfusion.Grouping.RecordChangedEventArgs e)
{
if(e.Action == Syncfusion.Grouping.RecordChangedType.Added)
{
newRecords.Add(e.Record);
}
}
private void GridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if (e.TableCellIdentity == null || e.TableCellIdentity.Column == null)
return;
if (e.TableCellIdentity.DisplayElement.Kind == DisplayElementKind.Record)
{
var record = e.TableCellIdentity.DisplayElement.GetRecord();
if (record != null && newRecords.Contains(record))
{
e.Style.Borders.Top = new GridBorder(GridBorderStyle.Solid, Color.Blue);
}
}
}
|
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.
This page will automatically be redirected to the sign-in page in 10 seconds.