Change Datagrid row

  • Thread starter Thread starter pcPirate
  • Start date Start date
P

pcPirate

Hi,

I have a Datagrid with 4 Columns, 4 Rows. The first column value is '1',
'2', '3', '1'.

i) Is it possible to change the whole Row forecolour into Blue if the first
column's value is '1' ?

Pls advise and thanks in advance.

pcPirate
 
Hi,
For that you need to override DataGridTextBoxColumnStyle
and create your own ColumnStyle class in which in paint
you can change the forecolor property, that gives you the
control.

Shravan.
 

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

Back
Top