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.
I have the selection mode set to row. However we are overriding the 0 column to have a row number display. It appears that the Grid Grouping Control instead of highlighting the row on selection just changes the display of the 0 column to an arrow. Since I don''t have this ability how can I go about displaying that the row is selected?
ADAdministrator Syncfusion Team February 21, 2006 05:57 AM UTC
Hi Chuck,
The row number can be displayed in the row header by handling the gridGroupingControl1_QueryCellStyleInfo event. Below is a code snippet.
this.gridGroupingControl1.TableDescriptor.Appearance.RowHeaderCell.CellType = "Header";
this.gridGroupingControl1.TableOptions.RowHeaderWidth = 25;
private void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
{
if(e.TableCellIdentity.ColIndex == 0 && e.TableCellIdentity.RowIndex > 3)
e.Style.Text = (e.TableCellIdentity.RowIndex - 3).ToString();
}
Best Regards,
Madhan.