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.