TRxDBGrid custom drawn lazarus / 39-Graphics ---------------------------------------------------------------------- lainz · 2021-08-18 13:40 Hi, I want to make a TRXDBGrid looks like the attached image. Basically it has: - A search icon at the left (I can add this as a separate control so no problem) - Odd and even rows - No lines between columns - No lines between rows - Item height: font height * 2 - Focused row: with custom drawing Nice to have: - Row editing working as well I have all the code to do the drawing, in the screenshot that's a custom listbox. But I need a custom TRXDBGRID because I don't want to change the logic of my program just the UI. Any ideas? Sample code? Screenshots? ---------------------------------------------------------------------- Fred vS · 2021-08-18 14:49 Quote from: lainz on August 18, 2021, 03:40:47 pmHi, I want to make a TRXDBGrid looks like the attached image. Basically it has: - A search icon at the left (I can add this as a separate control so no problem) - Odd and even rows - No lines between columns - No lines between rows - Item height: font height * 2 - Focused row: with custom drawing Nice to have: - Row editing working as well I have all the code to do the drawing, in the screenshot that's a custom listbox. But I need a custom TRXDBGRID because I don't want to change the logic of my program just the UI. Any ideas? Sample code? Screenshots? What widgetset do you want to use? With msegui it can be done very easy using TDBstringgrid or TDBWidgetgrid. Fre;D ---------------------------------------------------------------------- lainz · 2021-08-18 15:58 Hi Fred, how are you doing? Basically I'm using the LCL, the screenshot is an app made with LCL as well. In the same app I have grids and listbox. With Listbox there's no problem. The thing is with grids. I've done some styling with the properties, still not 100% what I want... ---------------------------------------------------------------------- Fred vS · 2021-08-18 16:40 Hello Leandro. I am fine and you? In case if you cannot do what you want with LCL, here fast-done demo using msegui and Zeos DB components. You will need last commit of mseide-msegui to use the Zeos components. Fre;D