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

asp.net datagrid questions

P: n/a
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,

Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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/a...cts/IFRAME.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Sam" <a1*****@hotmail.com> wrote in message
news:u4*************@TK2MSFTNGP12.phx.gbl...
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,

Nov 19 '05 #2

P: n/a
For scroll bar, check out this article,
http://datawebcontrols.com/faqs/Cust...edHeader.shtml
--
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com

"Sam" <a1*****@hotmail.com> wrote in message
news:u4*************@TK2MSFTNGP12.phx.gbl...
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,

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.