When you select a row in the cxGrid, the entire row gets selected (changes color to blue). How can I tell the grid not to select the records from a certain column i.e leave it colorless ? I tried afterscroll of the dataset to use :
cxGrid1dbTableView1.GetColumnByFieldName('MYFIELD').Focused := True;
But does not work.....
Use the
OnCustomDrawCell
event of the columns you want to change and put this code inside:In my case I am not using any theming so the colors match. If you are using something different you have to change them accordingly.