The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
ADAdministrator Syncfusion Team September 28, 2006 05:14 AM UTC
Hi Rajani,
You can use the GroupDropArea.PrepareViewStyleInfo event to change the appearance of the groupdrop area text in a grid. Below is a code snippet.
private void GroupDropArea_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e) { GridGroupDropArea area = sender as GridGroupDropArea; GridGroupDropAreaModel model = area.Model as GridGroupDropAreaModel; GridTable table = model.Table; if (table.TableDescriptor.GroupedColumns.Count == 0 && e.RowIndex == 2 && e.ColIndex == 4) { e.Style.BackColor = Color.Blue; e.Style.Borders.All = new GridBorder(GridBorderStyle.Solid); } }
Thanks, Haneef
BRBadri Rajani KanthSeptember 28, 2006 01:08 PM UTC
Haneef,
In the condition if (table.TableDescriptor.GroupedColumns.Count == 0 && e.RowIndex == 2 && e.ColIndex == 4),
are values 2 and 4 always fixed? Can we take them as constants? Cause my grids have different settings in different screens. So, would like to if I can replace this condition with any thing like TableCellIdentity.TableCellType == "some thing"..