We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

RichTextBox Cells ?

Thread ID:

Created:

Updated:

Platform:

Replies:

1680 Nov 19,2002 03:05 AM Nov 20,2002 05:17 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On November 19, 2002 03:05 AM

How can I put a RichTextBox as an inplace editor for a Cell (or a Column) ? Thanks by advance

Administrator [Syncfusion]
Replied On November 20, 2002 05:17 AM

> How can I put a RichTextBox as an inplace editor for a Cell (or a Column) ? > > Thanks by advance I guess you also want to do be able to show different colors and fonts in that same cell. Right now, you will have to derive your own cell model and cell renderer. For the active current cell when it has focus (see ShouldDrawFocusedCell()) you position the richtext control inside a cell at the given bounds passed to a Renderer.Draw method. Otherwise if Draw is called for inactive cells, you need to print the RichText yourself to a dc. You will need to call the RichText controls FormatRange method to do that using Interop. It is a bit complicate but I can send you a small sample project with a richtext control that shows how to call FormatRange. That said, our plans are to add a RichText cell and some other cell types with our 2.0 version. This is planned early next year. That would be the easiest for you just to wait and you don't have to mess around with FormatRange. Stefan

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;