1,105,581 Community Members

Changing font to bold in datagrid at runtime

Member Avatar
vrushalinz1
Newbie Poster
9 posts since Jun 2005
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

HI ,

i m using System.Windows.Forms.ListView control.
i want to set the text in the subItems to bold at run time.

How do i acchieve this :!:

Thanks in advance.

Member Avatar
npasma
Light Poster
40 posts since Jun 2005
Reputation Points: 4 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Correct me if I'm wrong, but I believe you can simply use the public property "font" for this, as in "MyControl.Font.Style" Or "FontStyle.Bold".

HI ,

i m using System.Windows.Forms.ListView control.
i want to set the text in the subItems to bold at run time.

How do i acchieve this :!:

Thanks in advance.

Member Avatar
vrushalinz1
Newbie Poster
9 posts since Jun 2005
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Correct me if I'm wrong, but I believe you can simply use the public property "font" for this, as in "MyControl.Font.Style" Or "FontStyle.Bold".

hi,
thanks for ur response,
ya wat u say is right, i have used both of these but these are read only properties so it just tell u if the text for the controll is bold or not.

But i need to set it to bold based on some condition and again unbold it.

i hope u got my point.

Member Avatar
Shodin
Newbie Poster
1 post since Apr 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

hi,
thanks for ur response,
ya wat u say is right, i have used both of these but these are read only properties so it just tell u if the text for the controll is bold or not.

But i need to set it to bold based on some condition and again unbold it.

i hope u got my point.

Lol, well this response is super late but this article should explain it.

http://msdn2.microsoft.com/en-us/library/3essdeyy(VS.80).aspx

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article