asp.net datagrid questions

S

Sam

hi folks,

1. how to set column width in datagrid server control?
2. how to set row height in datagrid server control?
3. how to display scroll bar in datagrid server control?

thanks,
 
S

Steve C. Orr [MVP, MCSD]

Here's info on setting datagrid column widths:
http://www.i-syn.gmxhome.de/devcom/colstyles/intro.htm

As for scroll bars, you can put your DataGrid into a fixed size area by
putting it in a div such as this:

<div id="Layer1" style="position:relative;width:350px;height:200px;overflow:
scroll;">datagrid goes here</div>The key is to use the "overflow" CSS
attribute for your grid.Here's more
info:http://www.w3schools.com/css/pr_pos_overflow.aspAnother option is to
put your grid in an IFrame.
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/IFRAME.asp
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top