Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > row height in dynamic asp:table

Reply
Thread Tools

row height in dynamic asp:table

 
 
hansiman
Guest
Posts: n/a
 
      10-02-2004
Why can't I set height of a table row in the code:

tRow.Height = "35"

or

tRow.Height = 35

both fails?

/M

 
Reply With Quote
 
 
 
 
Ken Dopierala Jr.
Guest
Posts: n/a
 
      10-02-2004
Hi,

You need to specify it in units:

tRow.Height = Unit.Pixel("35")

Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"hansiman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Why can't I set height of a table row in the code:
>
> tRow.Height = "35"
>
> or
>
> tRow.Height = 35
>
> both fails?
>
> /M
>



 
Reply With Quote
 
 
 
 
hansiman
Guest
Posts: n/a
 
      10-02-2004
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

On Sat, 2 Oct 2004 06:40:24 -0500, "Ken Dopierala Jr."
<(E-Mail Removed)> wrote:

>Hi,
>
>You need to specify it in units:
>
>tRow.Height = Unit.Pixel("35")
>
>Good luck! Ken.


 
Reply With Quote
 
Ken Dopierala Jr.
Guest
Posts: n/a
 
      10-02-2004
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.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"hansiman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
> On Sat, 2 Oct 2004 06:40:24 -0500, "Ken Dopierala Jr."
> <(E-Mail Removed)> wrote:
>
> >Hi,
> >
> >You need to specify it in units:
> >
> >tRow.Height = Unit.Pixel("35")
> >
> >Good luck! Ken.

>



 
Reply With Quote
 
hansiman
Guest
Posts: n/a
 
      10-02-2004
Thanks a lot

On Sat, 2 Oct 2004 07:21:50 -0500, "Ken Dopierala Jr."
<(E-Mail Removed)> wrote:

>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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
textbox height different than input height tshad ASP .Net 1 03-08-2007 10:04 PM
measuring web controls height at runtime (or converting .height % to px) Wotney ASP .Net 1 10-25-2006 01:39 PM
how to get specific cell height without hard-coding a height value laredotornado@zipmail.com HTML 0 08-19-2006 08:13 PM
ok I can do a totals row but how about a percentage row after each data row D ASP .Net Datagrid Control 0 05-23-2005 04:10 PM
1em height row in IE (spanned row) W@cek HTML 0 03-31-2005 11:23 AM



Advertisments