I am using the built in edit buttonColumn in my datagrid. When click edit in the datagrid, I textBox appears on to be editted. I couldn't set the maxLength for that textBox. Here is my code:
TextBox txtName = ((TextBox)e.Item.Cells.Controls);
txtName.MaxLength = 20;
I can set the property of maxLength but it is not limiting the text length.
Looking forward to your response.
Tx in advance