How do you select a single cell?
Specifically, in the PrepareViewStyleInfo, I''ve got something like this:
e.Style.BackColor = selectedRowWithFocusColor_;
e.Style.BackColor = selectedRowWithoutFocusColor_;
I can select multiple cells by using Shift or Ctrl, or selecting rows, columns or table, and the cells get colored properly, but I can''t select and individual cell. The cells have a CellType of static.
ADAdministrator Syncfusion Team July 21, 2004 02:18 PM
The currentcell is not considered as being selected unless your set the ExcelLikeCurrentCellSelection property. Setting this property will also change how the currentcell frame is drawn so you may not want to do it.
In that case in addition to checking whether e.RowIndex and e.ColIndex point to a selected cell in PrepareViewStyleInfo, you can also test if it is the CurrentCell by checking if ||e.RowIndex == grid.CurrentCell.RowIndex && e.ColIndex == grid.CurrentCell.ColIndex.
ADAdministrator Syncfusion Team July 21, 2004 02:27 PM