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
Open Dental Grid Formating
Re: Open Dental Grid Formating
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.
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.