D
David Webb
Hi,
I am having real trouble changing the width of a column on a datagrid. I
have tried changing the size of an existing column and adding a new column
with the width predefined but nothing seems to have any effect and its
driving me mad. Can somebody please tell me what I am doing wrong. I have
pasted some sample code below.
With DGUsers
..DataSource = DSUsers
..DataMember = "UserList"
Dim CCompany As New BoundColumn
CCompany.DataField = "Company"
CCompany.HeaderText = "Company"
CCompany.ItemStyle.Width = New Unit(3000, UnitType.Mm)
..Columns.Add(CCompany)
end with
Thanks in advance.
Dave
I am having real trouble changing the width of a column on a datagrid. I
have tried changing the size of an existing column and adding a new column
with the width predefined but nothing seems to have any effect and its
driving me mad. Can somebody please tell me what I am doing wrong. I have
pasted some sample code below.
With DGUsers
..DataSource = DSUsers
..DataMember = "UserList"
Dim CCompany As New BoundColumn
CCompany.DataField = "Company"
CCompany.HeaderText = "Company"
CCompany.ItemStyle.Width = New Unit(3000, UnitType.Mm)
..Columns.Add(CCompany)
end with
Thanks in advance.
Dave