[ GridView ] three little style cases
[ GridView ] three little style cases
am 22.12.2007 00:35:22 von TEO
hallo,
I have three problemS about the style of a Gridview (Aspnet 2.0)
to try to solve (in the official way or by a workaround)
1)
how to remove the upper border of a cell (1,0) ;
it has no text;
here an image:
http://img184.imageshack.us/my.php?image=imageko3.gif
(5kb)
2)
hot to add a left padding (4 px) to an entire column ?
the only way I found is to cycle all the rows
For i as integer = 0 to ....
GridView1.Rows(i).Cells(0).Style("Padding") = 4
Next
I would have expected a sort of
Gridview1.Columns(0).ItemStyle.Padding = 4
but it doesn't exist
3)
how to set/force the height of a row ?
I have a row with text that wraps so I have two lines of text in it;
I need TO GAIN vertical space
so I tried all the three way below:
GridView1.rows(5).height=40
GridView1.Rows.Item(5).Style.Item("Height") = 40
GridView1.Rows(5).Cells(3).Height = 40
but with no effect
------------------
Here the aspx code of the GridView
Re: [ GridView ] three little style cases
am 22.12.2007 00:41:13 von TEO
On Sat, 22 Dec 2007 00:35:22 +0100, teo wrote:
>1)
>how to remove the upper border of a cell (1,0) ;
>it has no text;
>here an image:
>http://img184.imageshack.us/my.php?image=imageko3.gif
>(5kb)
I forgot:
I tried
GridView1.Rows(3).Cells(3).Style("cellborder-top-style") = "none"
GridView1.Rows(3).Cells(3).Style("cellborder-top-style") = 0
with no effects
Re: [ GridView ] three little style cases
am 22.12.2007 17:37:41 von me
"teo" wrote in message
news:rnjom3p55fvlaeeonkd2ho5a4dq442tccs@4ax.com...
> On Sat, 22 Dec 2007 00:35:22 +0100, teo wrote:
>
>>1)
>>how to remove the upper border of a cell (1,0) ;
>>it has no text;
>>here an image:
>>http://img184.imageshack.us/my.php?image=imageko3.gif
>>(5kb)
>
> I forgot:
>
> I tried
> GridView1.Rows(3).Cells(3).Style("cellborder-top-style") = "none"
> GridView1.Rows(3).Cells(3).Style("cellborder-top-style") = 0
> with no effects
maybe try changing color to white or whatever your background is so it can
not be seen?
Re: [ GridView ] three little style cases
am 22.12.2007 19:07:08 von TEO
On Sun, 23 Dec 2007 01:37:41 +0900, "ThatsIT.net.au" wrote:
>
>"teo" wrote in message
>news:rnjom3p55fvlaeeonkd2ho5a4dq442tccs@4ax.com...
>> On Sat, 22 Dec 2007 00:35:22 +0100, teo wrote:
>>
>>>1)
>>>how to remove the upper border of a cell (1,0) ;
>>>it has no text;
>>>here an image:
>>>http://img184.imageshack.us/my.php?image=imageko3.gif
>>>(5kb)
>>
>> I forgot:
>>
>> I tried
>> GridView1.Rows(3).Cells(3).Style("cellborder-top-style") = "none"
>> GridView1.Rows(3).Cells(3).Style("cellborder-top-style") = 0
>> with no effects
>
>maybe try changing color to white or whatever your background is so it can
>not be seen?
do you know the exact syntax?