Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Gridview row height

Reply
Thread Tools

Gridview row height

 
 
John
Guest
Posts: n/a
 
      05-31-2008
Hi

I have a grid view which is bound to a data source. When I run the form the
grid view rows are expanded in height such that the header takes half of
page and the first row takes the other half. So I end up viewing only one
row with the header on the whole page. There isn't text long enough to
justify this expansion on both header text and first row data. What is the
problem and how can I restrict the row height of a grid view?

Thanks

Regards


 
Reply With Quote
 
 
 
 
Munna
Guest
Posts: n/a
 
      05-31-2008
On May 31, 11:48 am, "John" <i...@nospam.infovis.co.uk> wrote:
> Hi
>
> I have a grid view which is bound to a data source. When I run the form the
> grid view rows are expanded in height such that the header takes half of
> page and the first row takes the other half. So I end up viewing only one
> row with the header on the whole page. There isn't text long enough to
> justify this expansion on both header text and first row data. What is the
> problem and how can I restrict the row height of a grid view?
>
> Thanks
>
> Regards


Hi

Did you set your grid's height to 100%? Normally this is not suppose
to happen.
Can u put down some mark up here...

Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      06-01-2008
This happens when you specify height for the rows. Get rid of that and the
grid will format the row height nicely.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"John" <> wrote in message
news:%...
> Hi
>
> I have a grid view which is bound to a data source. When I run the form
> the grid view rows are expanded in height such that the header takes half
> of page and the first row takes the other half. So I end up viewing only
> one row with the header on the whole page. There isn't text long enough to
> justify this expansion on both header text and first row data. What is the
> problem and how can I restrict the row height of a grid view?
>
> Thanks
>
> Regards
>
>



 
Reply With Quote
 
Asim SH
Guest
Posts: n/a
 
      02-03-2011
good answer. It also happened to me when I specified gridview height. I Removed the height paramater and gridview automatically adjusted.

> On Saturday, May 31, 2008 1:48 AM John wrote:


> Hi
>
> I have a grid view which is bound to a data source. When I run the form the
> grid view rows are expanded in height such that the header takes half of
> page and the first row takes the other half. So I end up viewing only one
> row with the header on the whole page. There isn't text long enough to
> justify this expansion on both header text and first row data. What is the
> problem and how can I restrict the row height of a grid view?
>
> Thanks
>
> Regards



>> On Sunday, June 01, 2008 12:37 AM Munna wrote:


>> On May 31, 11:48 am, "John" <i...@nospam.infovis.co.uk> wrote:
>>
>> Hi
>>
>> Did you set your grid's height to 100%? Normally this is not suppose
>> to happen.
>> Can u put down some mark up here...
>>
>> Best of luck
>>
>> Munna
>> www.munna.shatkotha.com
>> www.munna.shatkotha.com/blog
>> www.shatkotha.com



>>> On Sunday, June 01, 2008 4:55 AM Eliyahu Goldin wrote:


>>> This happens when you specify height for the rows. Get rid of that and the
>>> grid will format the row height nicely.
>>>
>>> --
>>> Eliyahu Goldin,
>>> Software Developer
>>> Microsoft MVP [ASP.NET]
>>> http://msmvps.com/blogs/egoldin
>>> http://usableasp.net
>>>
>>>
>>> "John" <> wrote in message
>>> news:%...



>>> Submitted via EggHeadCafe
>>> SQL Server Best Practices
>>> http://www.eggheadcafe.com/tutorials...practices.aspx

 
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
Gridview Row Height in Opera Phil Johnson ASP .Net 2 03-19-2008 09:19 AM
Row height of GridView =?Utf-8?B?cmtibmFpcg==?= ASP .Net 3 11-05-2007 03:29 AM
Gridview row databound event - can't get past the 1st row of gridview maurban@gmail.com ASP .Net 5 10-13-2006 09:37 PM
GridView nested in DataList - refreshing corresponding DataList row after updating GridView row H5N1 ASP .Net 0 04-26-2006 11:41 PM
1em height row in IE (spanned row) W@cek HTML 0 03-31-2005 11:23 AM



Advertisments