is there an event after the date selection in a monthCalendar cell

when the date is selected in the Monthcalendar dropdown and the same that appears in the currentcell.text, I need to update my database. For now I work with a button containing a loop to save everything, but I would like to place the update in an event.... I know it is not currentCellCloseDropDown, for I tested it... So I would need either an event the is thrown after the text is changed in the cell (so I can use the .text property in my SQL command) or the name of the property that would contain the selected date in the monthcalendar please help, Pierre-Luc

1 Reply

AD Administrator Syncfusion Team March 1, 2006 08:51 AM UTC

Hi Pierre, Thanks for your interest, You can go for the CurrentCellChanged Event to get the changed text in the cell and update the database accordingly. Below is code snippet. private void gridControl1_CurrentCellChanged(object sender, System.EventArgs e) { GridCurrentCell cc = this.gridControl1.CurrentCell; if(cc.Renderer.StyleInfo.CellType == GridCellTypeName.MonthCalendar) { Console.WriteLine(cc.Renderer.ControlText); // update in to database } } Best Regards, Madhan.

Loader.
Up arrow icon