Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2945
Active Cell highlighting
posted

Apologies if this has been answered before, but I can't find anything relevant.

I have a grid, which is coloured by row, so I've changed the row Appearance BackColor and ForeColor.  The grid default CellClickAction is RowSelect.  But on certain columns of data I need to edit the cell, so on these columns I've set CellClickAction to CellSelect and I've enabled editing by double clicking on the cell.

My problem is I can drag a selection over the cells which are set to CellSelect.  Can I disable this anywhere?  At the moment I'm setting cell.SelectedApperance BackColor to Transparent and ForeColor to Black which isn't ideal.

Also, can I prevent ActiveCellAppearance from overridding my Row Appearance colours?  The only way I can see to do this is by setting ActiveCellAppearance.BackColor to Color.Transparent, but then I have a problem with my ForeColor as this is different per row so I can't set it to one specific colour.

Thanks,
Campbell