Background color for one cell in datagrid

S

Sebbe

Hi everybody

A simple question
How can i set the background color for a specific cell in a datagrid
I'm using a dataset to fill up the web control

Thankx
 
T

Teemu Keiski

Also note that in my code, you would need to know at which row you are if
you want to set one cell of one row to different color. The code I gave is
same as putting it in declarative syntax( changes color for all cells in
that column). You would need to check some row index etc to know which row's
cell you want to modify.
 

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

Members online

Forum statistics

Threads
474,266
Messages
2,571,075
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top