This is a migrated thread and some comments may be shown as answers.

Show Text Within RoundRectShape

1 Answer 63 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nader
Top achievements
Rank 1
Nader asked on 30 Dec 2015, 06:44 AM
How can I show some text within RoundRectShape? See the attached image.

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 30 Dec 2015, 11:45 AM
Hello Nader,

Thank you for writing.
 
RadGridView supports custom painting in its rows. It is suitable to use the RowPaint event which occurs when a row needs to be painted. If you want to allow the event to fire, you should set the EnableCustomDrawing to true of the RadGridView control. Please refer to the following help article: http://www.telerik.com/help/winforms/gridview-rows-painting-rows.html Thus, you can draw the desired string by using the System.Drawing.Graphics: https://msdn.microsoft.com/en-us/library/system.drawing.graphics.drawstring(v=vs.110).aspx

I hope this information helps. Should you have further questions I would be glad to help.
 
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Nader
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or