-
Oct 8th, 2009, 10:55 AM
#1
Thread Starter
Addicted Member
Allow user to resize columns of DataGridView
I'm trying to allow users to resize columns of my datagridview, but it's not working.
I have this line
Code:
DataGridView1.AllowUserToResizeColumns = True
I want users to be able to resize columns the same way they would if in excel. Has anyone had any luck with this?
Thanks
-
Oct 8th, 2009, 11:01 AM
#2
Re: Allow user to resize columns of DataGridView
It should work. Does the Grid is Enabled ?
Please mark you thread resolved using the Thread Tools as shown
-
Oct 8th, 2009, 11:08 AM
#3
Thread Starter
Addicted Member
Re: Allow user to resize columns of DataGridView
Originally Posted by danasegarane
It should work. Does the Grid is Enabled ?
Yeah it's enabled. I can rearrange the columns, but I can't resize them for some reason.
-
Oct 8th, 2009, 11:20 AM
#4
Re: Allow user to resize columns of DataGridView
I checked . It is working ...
Please mark you thread resolved using the Thread Tools as shown
-
Oct 8th, 2009, 11:50 AM
#5
Re: Allow user to resize columns of DataGridView
Is the DataGridView databound?
-
Oct 8th, 2009, 12:46 PM
#6
Thread Starter
Addicted Member
Re: Allow user to resize columns of DataGridView
Originally Posted by ForumAccount
Is the DataGridView databound?
By DataBound, do you mean is it populated from a database? My DataGridview is populated from a flat file.
-
Oct 8th, 2009, 12:55 PM
#7
Re: Allow user to resize columns of DataGridView
Originally Posted by rkeslar
By DataBound, do you mean is it populated from a database? My DataGridview is populated from a flat file.
I mean do you set the DataSource, or add any DataBindings? Also, what is the DataGridView's AutoSizeColumnsMode set to?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|