DBGrid READONLY column selection lazarus / 31-LCL ---------------------------------------------------------------------- iru · 2015-03-04 22:27 Gentlefolk, This is more philosophical than technical and I am looking for ideas on what I should do in the following situation: A DBGrid with most of the columns set to READONLY to display information and two columns where data can be input. If the user clicks on a cell in a READONLY column this cell is highlighted giving the user the idea that the cell is accessible. What should I do? In the "OnClick" code simply set the colour of the cell to the background colour therefore ignoring the 'click'. In the "OnClick" code display a error message to the user. In the "OnClick" code set the  "SelectedIndex" to a 'Readable" column in the same row. Something else? Any help appreciated, Ian. ---------------------------------------------------------------------- mm7 · 2015-03-10 20:38 There is OnDrawCell event in TStringGrid, in a handler of that you can paint whatever you like. In DBGrid there is OnDrawColumnCell. Try that.