We have a data grid which has 6 columns. We need to make sure that the 6 columns are filled completely in the datagridview.
We tried dataView.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells);. It did not work.
What should we do ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You may want to try something like this, it pans out the columns to fill the datagrid;
or
Lemme know if this isn’t what you’re looking for and i’ll change it. There are other possible options for DataGridViewAutoSizeColumnsMode, just have a look through the intelisense if you want to try the others.