Hi,
How can I display row/cell errors in UltraGrid whose data source is UltraDataSource?
As I know, for datatable or dataset, I can use DataRow.SetColumnError function to display errors in row/cell.
But when I use UltraDataSource as the data source, I can not find a function or a property to set row/cell errors.
Could anybody help me to deal with this issue?
Thank you~ ^_^
I don't see any reason why "selected" should have any effect. But a cell will never show a tooltip when in edit mode. That's pretty standard behavior in Windows, I think.
If you must show a tooltip in edit more, you'd have to apply some outside tooltip like the inbox ToolTip class or the UltraToolTipManager to do that.
Yes, you right. I fixed it. but there is another issue. I set tooltip with error on cell with this code:
cell.ToolTipText = "Invalid data";
and this tooltip is not showed if cell in edit mode or selected. How can i avoid this?
Hi Kiryl,
The only way that would happen is if you created an Appearance object at some point and assigned that Appearance instance to each cell in the grid. If you did that, then every cell would be sharing the same Appearance object and so any change to that object would affect every cell in the grid.
If that's the case, then it would no be limited to Image. The same thing would happen with any of the properties on the Appearance, such as BackColor.
if i set icon with this code e.Row.Cells[0].Appearance.Image = Icons.Error16; in GridBeforeRowUpdate event handler than this icon sets for all cells in grid. Please advice how to set icon only for one cell?
UltraDataSource does not currently support IDataErrorInfo, so there's really no way to do this. You should Submit a feature request to Infragistics.
You could, of course, use the Appearance of the cell to apply an image to any cell in the grid you like. So you could show an error icon and show a tooltip when the mouse is over it and do mainly the same thing that the DataError does.