Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get column index in onCustomDrawCell event in DevExpress QuantumGrid (VCL)

In my application, I need co draw some grid columns (not completely rows) in different colors. How can I get current columt id, from TcxGridTableDataCellViewInfo variable?

Thanks.

like image 501
Andrey Avatar asked Dec 20 '22 13:12

Andrey


1 Answers

You can use AViewInfo.Item.Index.

Alternatively you could assign a different OnCustomDrawCell handler to each column instead of a single one to the view. Then there is no need to differentiate the columns.

like image 160
Uli Gerhardt Avatar answered Dec 24 '22 02:12

Uli Gerhardt