Hi people,
How do I set a column width of a datagrid programmatically? Here is part of my code how I add a column to my datagrid.
I have set the width = 10px of the datagrid1 in the Design view, but the datagrid change its size if there are too much data in one record. I want a fixed size datagrid and always stay at the size that I have specified all the time no matter how much data are in a row.Code:' -- add bound columns to datagrid Dim col As New BoundColumn col = New BoundColumn col.HeaderText = "Name" col.DataField = Name col.SortExpression = Name DataGrid1.Columns.Add(col)
Please help
Kero


Reply With Quote


Bookmarks