Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello to you,

I'm newbie using VB.NET 2005

I'm interest in .NET Scripting article in :
http://weblogs.asp.net/rosherove/pages/DotNetScripting.aspx[^]

From the above article, I successfully writing script as "frm.text = ""FORM TITLE"" (to change form title using run-time script)

But the problem is :
How to setting datagridview column's width ?

Let says a form contains datagridview named as "grd".

The "grd" contains some columns as "customer_no", "customer_name", "address", "city"

Now, I want to set grd.columns("customer_name").width = 250 by using script.

Please advice & show me by code.

Thanks in advance

Regards,
Steven
email : [Removed]
Posted
Updated 21-Jun-10 17:21pm
v2
Comments
PSK_ 21-Jun-10 23:22pm    
Don't mention your email id on public forums.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900