Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
650
Error message in unbound column
posted

Hi,

I'm using an UltraGrid which is bound with a DataSet, when the layout of the UltraGrid is initialized, I add unbound columns to it.

My problem is, when an error occured on an unbound column, I want to display a message on it with the DataRowView but the property ListObject of the UltraGridRow does not contain the unbound columns so I'm not be able to set the column error message.

Here is what I'm trying to do (In the Error event of the UltraGrid) :

DataRowView dataRowView = (DataRowView)e.DataErrorInfo.Row.ListObject;
...
dataRowView.Row.SetColumnError('column in error', 'error message');

How is it possible to display an error on an unbound column ?

 

Thank you