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