Groups | Blog | Home
all groups > asp.net > december 2004 >

asp.net : asp.net datagrid questions


Sam
12/21/2004 11:30:28 PM
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,


Steve C. Orr [MVP, MCSD]
12/21/2004 11:54:27 PM
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


--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net





[quoted text, click to view]

Saravana
12/22/2004 11:33:27 PM
For scroll bar, check out this article,
http://datawebcontrols.com/faqs/CustomizingAppearance/ScrollableDataGridWithFixedHeader.shtml


--
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com



[quoted text, click to view]

AddThis Social Bookmark Button