regd richtextbox and datagrid
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, I have a richtextbox. I want to display a datagrid with values inside the richtextbox.There should be a scroll in the textbox if the datagrid size is larger than that of the textbox. How do I do this ?? Karteek
You could extend the
DataGridColumnStyle
with your own class that uses aRichTextBox
. OverrideGetMinimumHeight
and return anint
large enough to show a decent amount of rich text. There are a couple articles here on CodeProject about creating your ownDataGridColumnStyle
s; just do a search for "DataGridColumnStyle".Microsoft MVP, Visual C# My Articles