bold the text within a specific cell of a datagrid?

G

Guest

Any ideas on how i can bold the text within a specific cell of a winforms
datagrid?i have used DataGridColumnStyle for an entire column,however
currently i need just the text of a specific cell to be bold?(The
datasource of the datagrid is a datatable).

Thanks
 
L

Lee Gillie

Vinny said:
Any ideas on how i can bold the text within a specific cell of a winforms
datagrid?i have used DataGridColumnStyle for an entire column,however
currently i need just the text of a specific cell to be bold?(The
datasource of the datagrid is a datatable).

Thanks

It can be done, but it is not pretty. You must do something like
deriving datagrid, and override the OnPaint. But the reward is, when
this infrastructure is in place, is that you can precisely control BG
color, font color, font style, images, absolutely everything about the
appearance, on a cell by cell basis.

Google your question. There are good examples out there, but the detail
of how to do it is way more than someone can respond in a brief usenet
reply.

- Lee
 

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