How to highlight records in datagrid ?

A

Anand Ganesh

Hi All,

I am using a datagrid to display a table. Based on a query I want to
highlight few records in the datagrid at the same time I want to show those
records which does not satisfy the query as un-highlighted.

Any clue on how to do this?

Thanks for your time and help.

Regards
Anand Ganesh
 
A

Abhijeet Dev

use DatagridTableStyle to do it... create it dynamically on the basis of
datasource. check MSDN documentation.
 
A

Anand Ganesh

Do you mean I should scan each row by row whether it satisfies a particular
query and if so then highlight that row.

It will be very inefficient if I have few thousands of records and also much
time consuming.

I am looking for some internal member function which will do this task.

I searched the documentation and could'nt find and this is where I need some
help
 

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