Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Well thats disappointing. I read somewhere that this could be achieved in an iframe but I never got any of my coding to work out. I do have another question though. In the application I am designing I design my datagrid to be a certain size and then populate it with information from a SQL database. No problem. Now lets say the query for the desired table only returns 1 or 2 results but I have the table set to be tall enough to fit 10 results. Now the rows stretch in height to fill my datagrids area. Same thing happens with my header fields. Is there anyway to fix this short of hard coding in sizing for each row? IE is there an autosize I'm not seeing, or something to stop the datagrid from stretching the rows?
  • Moderators
Posted

Why is it disappointing?

I wouldn't use an Iframe, prefer to use a div tag...

it works and it's smiple....

 

<div style="Z-INDEX:101; LEFT:150px; OVERFLOW:auto; WIDTH:772px; POSITION:absolute; TOP:31px; HEIGHT:172px" nowrap>

//Place grid here

 

</div>

Visit...Bassic Software
Posted
I do have another question though. In the application I am designing I design my datagrid to be a certain size and then populate it with information from a SQL database. No problem. Now lets say the query for the desired table only returns 1 or 2 results but I have the table set to be tall enough to fit 10 rows. Now the rows stretch in height to fill my datagrids area. Same thing happens with my header fields. Is there anyway to fix this? IE is there an autosize I'm not seeing, or something to stop the datagrid from stretching the rows?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...