GGC Datetime cell readonly

Hello, How can I disable the datetime dropdown for readonly cells? In fact, how can I disable all types of dropdowns for read only cells? Cheers, Mike

1 Reply

AD Administrator Syncfusion Team January 6, 2006 06:29 AM UTC

Hi Mike, you can use the TableControlCurrentCellShowingDropDown Event to disable the dropdown function. Here is the code snippet. private void gridGroupingControl1_TableControlCurrentCellShowingDropDown(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCurrentCellShowingDropDownEventArgs e) { if(e.TableControl.CurrentCell.Renderer.IsReadOnly()) e.Inner.Cancel = true; } Let me know if you need futher assistance, Regards, Madhan.

Loader.
Up arrow icon