How to hide the text for ColorEdit type?
Attachment: ColorEdit_e7951420.zip
Hi Tuan,
Thank you for your interest in Syncfusion products.
To achieve your requirement use the event CurrentCellCloseDropDown
and set the backcolor to forecolor. Please refer the below code snippet for
further clarification and let us know if you have any concerns.
Code Snippet:
this.gridControl1.CurrentCellCloseDropDown
+= new PopupClosedEventHandler(gridControl1_CurrentCellCloseDropDown);
void
gridControl1_CurrentCellCloseDropDown(object
sender, PopupClosedEventArgs e)
{
GridDropDownColorUICellRenderer rend = this.gridControl1.CurrentCell.Renderer as GridDropDownColorUICellRenderer;
if (rend != null
&& !string.IsNullOrEmpty(rend.ControlText))
{
this.gridControl1[rend.RowIndex,
rend.ColIndex].TextColor = rend.StyleInfo.Interior.BackColor;
}
}
Thanks & Regards,
AL.Solai.
Hi Tuan,
Thank you for your update.
Here with we have attached a sample implementing your requirement. Please refer this and still if you could not achieve your requirement then replicate your issue in this sample and send back to us. So, that it would be easy for us to provide a prompt solution.
Please let us know if you have any other concerns.
Thanks & Regards,
AL.Solai.
Attachment: WindowsFormsApplication5_e63b70c4.zip
- 3 Replies
- 2 Participants
-
TL Tuan Lam
- Sep 22, 2014 08:54 PM UTC
- Sep 30, 2014 05:21 AM UTC