TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Gustavo
NA
1.3k
454.4k
How Do I: Make columns in a DataGridView the minimum size?
Apr 11 2010 5:27 PM
Hello:
I am populating a DataGridView and would like to make the columns the minimum size as long as the data can fit in them. I have tried the following line and it works:
dataGridViewReport_Process.Columns[0].AutoSizeMode =
DataGridViewAutoSizeColumnMode
.Fill;
But: If I do it to the second column it will mess it up. Seems it will only allow me to do only one column.
Is there a way that I can have it do all the columns in the DataGridView?
Reply
Answers (
2
)
Call Log windows mobile
Passing a variable from one form to another without creating a new instance of the first form