BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void gridDataBoundGrid1_CurrentCellValidateString(object sender, GridCurrentCellValidateStringEventArgs e) { GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; if(cc.ColIndex == 2) { if(e.Text.IndexOf('' '') > -1) { if(cc.IsEditing) cc.Renderer.Control.Text = ""; else this.gridDataBoundGrid1[cc.RowIndex, cc.ColIndex].Text = ""; e.Cancel = true; } } }
Private Sub gridDataBoundGrid1_CurrentCellValidateString(sender As Object, e As GridCurrentCellValidateStringEventArgs) Dim cc As GridCurrentCell = Me.gridDataBoundGrid1.CurrentCell If cc.ColIndex = 2 Then If e.Text.IndexOf(" ") > - 1 Then If cc.IsEditing Then cc.Renderer.Control.Text = "" Else Me.gridDataBoundGrid1(cc.RowIndex, cc.ColIndex).Text = "" End If e.Cancel = True End If End If End Sub ''gridDataBoundGrid1_CurrentCellValidateString