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.
Hi,
In DataBoundGrid, I use ValidateFailed to validate a numeric column as below:
private void dgrSelectedFields_ValidateFailed(object sender, Syncfusion.Windows.Forms.Grid.GridValidateFailedEventArgs e)
{
GridCurrentCell cc = this.dgrSelectedFields.CurrentCell;
int row = cc.RowIndex;
int col = cc.ColIndex;
string strValue = dgrSelectedFields[row, col].Text;
string strMessage = "Item ''" + strValue + "'' does not pass validation test.";
cc.ErrorMessage = "";
MessageBox.Show(strMessage, "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
e.Handled = false;
}
Could you please tell me how to reset the default value of the cell after the MessageBox shown? Because the default value will only be reset when user press ESC key.
Thanks