Visual Studio 2008 DataGridView Properties

I have created a form with a datagridview and I want to prevent the user from expanding the width of the columns and the height of the rows. Is there a property that would allow me to prevent this behavior. I also would like to be able to copy the value from the cell on the datagridview, is there a property that controls that. Right now I am not allowed to mark any cell in the datagridview so I could copy and paste it.
LVL 1
rwheeler23Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rajeeshmcaCommented:
HI rwheeler23,

I dont think there is a option to expand the width and height of the GridView... To make the Gridview columns width fixed , set the itemstyle property to a fixed width....

>>> I also would like to be able to copy the value from the cell on the datagridview, is there a property that controls that

No there is no property that controls it....

and also i dont understand what u mean by marking the cell
0
rwheeler23Author Commented:
What I mean by marking the cell is, if you look at this screenshot and I hover over the cell in the agency column, there is no way I can mark the value so I can cut and paste it back to the host screen.
AgenciesByJobs.jpg
0
rajeeshmcaCommented:
is that a gridcontrol? if so, is it possible to add TextBoxControl
0
rwheeler23Author Commented:
It is a datagridview
0
rajeeshmcaCommented:
U can add the column as a DataGridViewTextBoxColumn...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.