It's been a long time since I used a datagrid, but I believe it's something like
Datagrid.Columns(3).Width = 52
Use whichever column and whatever length you need. (The width is in what you have its measurement set to - twips, pixels, etc., not characters. You'll have to calculate the width of the string in that column in its measurement if you want toe column to be that number of characters wide.)How to increase the width of a particular column(only) of a datagrid in vb.net using code.?
colanth is correct :)
Report Abuse
No comments:
Post a Comment