This question is locked. New answers and comments are not allowed.
i have one case that I need to be able to trigger cell visual error state with tooltip as what it can be done during CellValidating event.
e.ErrorMessage = "ERROR: Column {" + e.Cell.DataColumn.Header + "} cannot be blank."; //set the error massage
//make it invalid, this will lock user in cell and display the error message
e.IsValid = false;
The case is that I need to validate the input data in backend via WCF service. As a result, the result is coming back asynchronously. When the result indicated that the input data is bad, i would like to be able to raise the cell visual error state and display the error tooltip. When the result is back, it is not in CellValidating function anymore. So GridViewCellValidatingEventArgs is not available. As a result, there is no e.ErrorMessage and e.IsValid to be used. What will be other way to do it to have the same error effect?
e.ErrorMessage = "ERROR: Column {" + e.Cell.DataColumn.Header + "} cannot be blank."; //set the error massage
//make it invalid, this will lock user in cell and display the error message
e.IsValid = false;
The case is that I need to validate the input data in backend via WCF service. As a result, the result is coming back asynchronously. When the result indicated that the input data is bad, i would like to be able to raise the cell visual error state and display the error tooltip. When the result is back, it is not in CellValidating function anymore. So GridViewCellValidatingEventArgs is not available. As a result, there is no e.ErrorMessage and e.IsValid to be used. What will be other way to do it to have the same error effect?