Open Dental Grid Formating

This forum is for programmers who have questions about the source code.
Post Reply
jaynahar
Posts: 40
Joined: Wed Apr 23, 2014 6:35 am

Open Dental Grid Formating

Post by jaynahar » Thu Apr 30, 2015 6:16 am

Hi All,

I am using the open dental grid in my plugin project. I want to change its back color, title color, fore color etc.. So how i can i achieve this?

I tried to changes its back color but thing changed.

please provide the sample code.

thanks in advance

regards

jaynahar

allends
Posts: 235
Joined: Fri Aug 23, 2013 11:29 am

Re: Open Dental Grid Formating

Post by allends » Thu Apr 30, 2015 9:13 am

Since the ODGrid is a custom control that overrides/doesnt use the default settings for a control, you will need to go and manually edit the ODGrid source code to change the colors. That will change the grid colors for every single window though.
If you are looking for a solution where each grid you create has different colors then, currently, that does not exist.

You could accomplish your goal by making every color in the ODGrid source file into a public property that is defaulted to the current default on creation. Then you could simply call those and sett them from the code on load, before your FillGrid method. I don't think that would be too difficult.
Allen
Open Dental Software
http://www.opendental.com

Post Reply