bold the text within a specific cell of a datagrid?

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top