GrapeCity MultiRow Windows Forms Documentation
Displaying Error Messages

In the GcMultiRow control, error messages can be displayed for each row or cell individually.

Error Message for Rows

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.

Error message for rows

Using Code

This example specifies error text.

[VB]

GcMultiRow1.Rows(0).ErrorText = "Row Error"

[CS]

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.

Error Messages for Cells

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.

Error message for Cells

Using Code

This example specifies error text for the cell.

[VB]

GcMultiRow1.Rows(0).Cells(0).ErrorText = "Cell Error"

[CS]

gcMultiRow1.Rows[0].Cells[0].ErrorText = "Cell Error";

An error icon is displayed regardless of whether the cell is being edited.

See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options