BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
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.