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.
Hi!
I have a GDBG with the row headers. When I select the row the header shows the right arrow image. In my program I''m selecting the row programatically at which point I would like to remove the previously displayed "selection arrow" from the header of the previously selected row.
I thought this should be easy but no matter what I do the "selection arrow" is not removed.
Here is what I already tried:
DataGrid[k, 0].ImageIndex = -1;
DataGrid[k, 0].CellType = "RowHeaderCell";
DataGrid[k, 0].CellAppearance = GridCellAppearance.Flat;
DataGrid[k, 0].ResetImageIndex();
DataGrid[k, 0].ResetEnabled();
DataGrid[k, 0].ResetCellAppearance();
DataGrid[k, 0].ResetThemed();
DataGrid[k, 0].ResetInterior();
ADAdministrator Syncfusion Team December 14, 2004 03:02 PM UTC
You cannot set cell specific properties in a GridDataBoundGrid using an indexer. Instead, you need to use an event as discuessed in these KB''s:
http://64.78.18.34/Support/article.aspx?id=560
http://64.78.18.34/Support/article.aspx?id=10351
If you want to set the sample set of properties for teh whole column of row headers, then you can set them using this style object.
this.gridControl1.BaseStylesMap["Row Header"].StyleInfo.CellAppearance = GridCellAppearance.Flat;
But if you want to move the arrow selection indicator, then in addition to selecting the row (adding a row range to the grid.Selections collection), you should try either moving teh currentcell using grid.CurrentCell.MoveTo or setting the binder positon using grid.Binder.CurrentPosition. Both these actions will normally move the the header arrow.