private void SetColError ( DataRow myRow, int colIndex ) {
string errorString = "Your error text here.";
// set the error for the specified column of the row.
myRow.SetColumnError ( colIndex, errorString );
}
Private Sub SetColError ( ByVal myRow As DataRow, ByVal colIndex As Integer )
Dim errorString As String = "Your error text here."
' set the error for the specified column of the row.
myRow.SetColumnError ( colIndex, errorString )
End Sub |