Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid row unusually large with one row of data

Status
Not open for further replies.

IT4EVR

Programmer
Joined
Feb 15, 2006
Messages
462
Location
US
I am binding the datagrid to a SqlDataReader. However when it only pulls down one record, the row and header is bloated -- about twice the thickness. If the datagrid contains more than one row, the header and rows display normally.

This might be DataGrid 101 but I'm not sure 1) what causes this behavior and 2) how to prevent it.

Perhaps this is caused by using an auto format?

Thanks again for your expertise...
 
Try having a look at the View Source once the page has rendered. You can easily fix any style behaviour problems by using CSS.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top