H hansiman Oct 2, 2004 #1 Why can't I set height of a table row in the code: tRow.Height = "35" or tRow.Height = 35 both fails? /M
Why can't I set height of a table row in the code: tRow.Height = "35" or tRow.Height = 35 both fails? /M
K Ken Dopierala Jr. Oct 2, 2004 #2 Hi, You need to specify it in units: tRow.Height = Unit.Pixel("35") Good luck! Ken.
H hansiman Oct 2, 2004 #3 thanks, but ... even if I state "Imports System.Drawing" tRow.Cells = Unit.pixel(35) fails The examples in VS seem only to imports System.Drawing /M
thanks, but ... even if I state "Imports System.Drawing" tRow.Cells = Unit.pixel(35) fails The examples in VS seem only to imports System.Drawing /M
K Ken Dopierala Jr. Oct 2, 2004 #4 Hi, It isn't in System.Drawing. If you hover your mouse over the error it should tell you the namespace. Try: tRow.Height = System.Web.UI.WebControls.Unit.Pixel("35") Also in your code below you are trying to set Cells to a height. You can't do that, Cells is a read-only property. Good luck! Ken.
Hi, It isn't in System.Drawing. If you hover your mouse over the error it should tell you the namespace. Try: tRow.Height = System.Web.UI.WebControls.Unit.Pixel("35") Also in your code below you are trying to set Cells to a height. You can't do that, Cells is a read-only property. Good luck! Ken.