MultiRow Windows Forms > Developer's Guide > Using MultiRow > Rows and Cells > Displaying Error Messages |
In the GcMultiRow control, error messages can be displayed for each row or cell individually.
Error messages for rows can be set using the Row.ErrorText property. An error message icon is displayed in the RowHeaderCell if a value other than the null character is set in the Row.ErrorText property.
As shown in the following figure, error message contents are displayed in a tooltip when the pointer is over the error icon.
This example specifies error text.
GcMultiRow1.Rows(0).ErrorText = "Row Error" |
gcMultiRow1.Rows[0].ErrorText = "Row Error"; |
Error icons and tooltips are not displayed for the row if the RowHeaderCell does not exist in the corresponding row. |
The error message for a cell can be set using the Cell.ErrorText property. An error message icon is displayed in the cell if a value other than the null character is set in the Cell.ErrorText property.
As shown in the following figure, the error message contents are displayed in a tooltip when the pointer is over the error icon.
This example specifies error text for the cell.
GcMultiRow1.Rows(0).Cells(0).ErrorText = "Cell Error" |
gcMultiRow1.Rows[0].Cells[0].ErrorText = "Cell Error"; |
An error icon is displayed regardless of whether the cell is being edited.