Host richtextbox inside datagridview cell

Xancholy

Well-known member
Joined
Aug 29, 2006
Messages
143
Programming Experience
Beginner
Can someone please show me sample code of how to host a richtextbox control inside a datagridview cell ?

Thanks very much
 
So if I use something like

VB.NET:
Public Class RichTextBoxColumn
    Inherits RichTextBox
VB.NET:
Dim col As New RichTextBoxColumn()
        Me.dataGridView1.Columns.Add(col)

am I on the right track??
 
Hmm. I'm trying out the MS calendar column but I cannot seem to get the Richtextbox Column to work. Anyone had any success with this, can you please share your code ?
 
VB.NET:
Public Class RichTextBoxColumn
    Inherits RichTextBox

This seems wrong. Shouldn't you be inheriting from the DataGridViewColumn?
 
Back
Top