Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set DataGridView MaxInputLength

Status
Not open for further replies.

Pumices

Programmer
Dec 1, 2004
16
0
0
US
Hello, I have a datagridview that I fill using a datatable. If I create the columns in advance for some reason the datagridview won't fill so I have to leave the colums empty and let it fill them in when i bind the data source. However I wish to limit the number of characters that can be entered. The columns have a property "MaxInputLength" that I can set if I make the columns in advance but for some reason I cannot find where to set that property in code. Maybe I am blind but I have searched everywhere and cannot find it. Any help would be greatly appreciated. Thanks
 
Why dont you try to set the amount of characters that is output in the OnDataBinding event?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top