asp.net datagrid questions

  • Thread starter Thread starter Sam
  • Start date Start date
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,
 
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
 
Back
Top