Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do you set the column width for an asp table?

Status
Not open for further replies.

jw970170

Programmer
Aug 8, 2005
38
Hello,

I cannot figure out how to set the column width for a table no matter how hard I try. I've used this code but it doesn't do anything

Table.Rows(0).Cells(0).Style.Add("Height","150px")

I've also tried

Table.Rows(0).Cells(0).Width = New Unit(150,UnitType.Pixel)
 
I totally screwed that up:p What I meant to say in my original post is

Table.Rows(0).Cells(0).Style.Add("Width","150px")

I can set the height but I cannot set the width
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top