richtext in a datagrid?

R

Rerard

Hello. I need to be able to have a datagrid with richtext in a cell.
THen on top of that the text has to be formatable via buttons. What I
have been able to do is have a richtextbox with a word style toolbar
for formatting. And I have been able to get a datagrid so text from
word can be pasted into it with formatting. But I cant seem to get over
that last hump of being able to format/edit the text direclty in the
cell. Also for some reason after I paste formatted text into a cell,
when I click on something else the text will turn into plain
unformatted text. I am open to purchasing a third party datagrid as Iv
read that the one that comes with vb.net is not feature rich. I have
already tried several but just can't seem to get it quite right. The
closest I got was with rustemsofts datagridtexteditcolumn but I could
not get over the problem of formatted text morphing to plain text after
clicking away from the cell. Im getting pretty desperate here, any help
is appreciated.
 
D

David Wier

I'm assuming we're talking about ASP.Net here, since you said 'datagrid'
You can create an ItemTemplate for that field, and put in a RichTextBox
control. There are some on the market for sale, like the one at
http://richtextbox.com/
However, there is a free one also, at http://freetextbox.com
Just put one of those inside the template field and work with Rich text to
your heart's content
 
R

Rerard

Those look like exactly what I need but unfortunately I am working in
vb.net, any ideas? Also I need to have the formatting toolbar stay in
one spot while the textbox itself moves around.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

column of richtext box in datagrid. 3
Datagrid and dropdown list 8
datagrid 1
filling textbox from datagrid 5
Colors in a DataGrid 3
ContextMenu 7
datagrid help 1
Getting Text from Richtext 3

Top