i have a problem using datagrid in vb.net.
i want to bound it with database and want to change column length
please tell me about it
Use the datasource property of the datagridview to bind the database with the datagridview....
You can change the column length by
datagridview.columns(0).width = length
eg.
datagridview1.columns(0).width = 200
Likewise you can change the width of the datagridview....
You can also use the datagridview autoresizecolumns method to resize the columns automatically...
Thanks....