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
975
No ErrorText Property
posted

I'm editing my question below because I figured it out. (DUH.)  I just did this:

int rowIdx = this.ultraGrid1.ActiveRow.Index;

DataRow row = dsEmps.Tables["Employees"].Rows[rowIdx];

row.RowError = "Row error text";

UltraGridColumn col = this.ultraGrid1.ActiveCell.Column;

row.SetColumnError(dsEmps.Tables["Employees"].Columns["FirstName"],"Column Error text");

I case someone else is having trouble starting their brain, I'll leave this post. 

Hello;

I read an earlier post that addresses this, http://forums.infragistics.com/forums/p/1268/11721.aspx, but can't believe that the UltraGrid falls short of Microsoft's DataGridVIew as far as cell and row ErrorText support goes. 

I'm trying to show an error icon, !, in a cell and a row, like you can do with the ErrorText property of the Infroagistics ErrorEventArgs class or the Microsoft DataGirdViewRow class.  My grid is bound to an ADO.Net Datatable. I see how to get the error icon in the Error event of the grid, but that's for errors from the underlying data source or a mask.  Is there a clever/simple way to get a little error icon and associated tooltip when a business level validation edit is violated?

Thanks,

Bill

  • 20872
    Offline posted

    Hello Bill,

    Thank you very much for sharing your solution with the community.

    Please feel free to let us know if you have any other questions regarding our components.