By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,888 Members | 1,573 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,888 IT Pros & Developers. It's quick & easy.

Datagrid with fewer records than page size is ugly

P: n/a
I am using a datagrid bound to a Dataset. The problem is when the dataset has fewer records than the page size for the height, the cells grow automatically. Thus the datagrid with one record grows the cell heights between the one data row and the header row to match the whole datagrid height. Is there any easy way to fix the cell sizes to the same as if there were pagesize records, and the rest of the datagrid would be blank? In it's current state it's very ugly. Thanks in advaince.
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
remove the height setting on the datagrid property pages. Then contract the
datagrid as small as it can go. That will prevent it from stretching to fit.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Charlie Dison" <ch****************@vitalworks.com> wrote in message
news:EA**********************************@microsof t.com...
I am using a datagrid bound to a Dataset. The problem is when the dataset

has fewer records than the page size for the height, the cells grow
automatically. Thus the datagrid with one record grows the cell heights
between the one data row and the header row to match the whole datagrid
height. Is there any easy way to fix the cell sizes to the same as if
there were pagesize records, and the rest of the datagrid would be blank? In
it's current state it's very ugly. Thanks in advaince.
Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.