Changing a color of row in datagrid

K

Kishor

Hi all,
Is it possible to change a bgColor of a row in a datagrid ?. I am developing
a windows form based application.

Please let me know

TIA,
Kishor.
 
C

Cor

Hi Kishor,

In a lot of ways

even automatic row by row using the alternatingbackground
or by using selectionbackground property

It can also in the styles

I hope this helps?

Cor
 
K

Kishor

Hi Cor,

Thanx for your immediate reply, Please see here what I am looking.



I am havig a datagrid on one windows form.. I have populated the grid with
proper data. Presently it is displaying the data in default white color.
Depends on the content in cell I wanted to change the color of the grid.



Lets assume for Example I am having a list of cities in grid along with
sales fig.

If sales fig is less than 100 then the full row should be in some different
color. How do I achieve this.



If you have any Solution please let me know. Any sample code will do.



Regards and thanks.

Kishor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top