Setting .maxlength for a DataGridViewComboBoxColumn
Hi
I have a DataGridView with 2 ComboBoxColumns in it - Description and Action.
I need to be able to limit the amount of characters that users can type into the ComboBoxes within these columns but am not sure how to do it. I have tried:
Code:
With Description
.maxlength = 20
.Name = "Description"
.HeaderText = "Description"
.Width = 275
.Visible = True
.ReadOnly = False
'.AutoComplete = True
.Items.Add("2nd Homework deadline missed")
End With
DataGridView1.Columns.Add(Description)
coladd = True
But .maxlength doesn't seem to apply to ComboBoxColumns!
Anyone got any ideas?
Thanks
Visual Basic 2005 ver. 8.0.50727.867