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;
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:
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.