Datagrid column width

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top