The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator 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.