Thanks for your help. Superb support.
Can this be included in the next release (2.0) please.
Thanks
Satish
>To programmatically change the color of richtext in a cell, you could use code like:
>
>private RichTextBox rtb = new RichTextBox();
>
>private void button1_Click(object sender, System.EventArgs e)
>{// cell 3,1 is richtext, code colors chars 3-6.
> rtb.Rtf = this.gridControl1[3,1].Text;
> rtb.SelectionStart = 2;
> rtb.SelectionLength = 4;
> rtb.SelectionColor = Color.Pink;
> this.gridControl1[3,1].Text = rtb.Rtf;
>}
>
>
>If you want to add the ability to change text color to the drop down panel that you get when you click the button in the richtext cell, then one way to do this is to derive GridRichTextEntryPanel, adding the toolbar item to implement color selection some how. You could use the code snippet above to actually affect the color change.
>
>Then you would derive GridRichTextBoxCellModel and GridRichTextBoxCellRenderer to make the cell control use your derived entry panel. All of the work would be in GridRichTextBoxCellRenderer where you would swap the code that uses the private panel member of that class so that in the derived class, the panel would be an instance of your derived panel.