How can I limit the length of characters user can enter on a particular gridview column?
I tried this code but I got an error saying that there is no definition for MaxLength?
void radGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
if (e.ColumnIndex == 1)
{
if (e.Column is GridViewTextBoxColumn)
{
((RadTextBoxEditorElement)((RadTextBoxEditor)this.radGridView1.ActiveEditor).EditorElement).MaxLength = 30;
}
}
}