Gridview row height

J

John

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
 
M

Munna

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
 
A

Asim SH

good answer. It also happened to me when I specified gridview height. I Removed the height paramater and gridview automatically adjusted.
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:

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


news:%[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top