Click to See Complete Forum and Search --> : datagrid question


dvandam
February 4th, 2003, 11:02 AM
I am making a web page in Visual Studio Net that has a datagrid at the top and fields below the datagrid.

My question is - when I make the data grid, I don't like the vertical height of the rows. They are too large and take up too much room but I don't see any way to change them. Is there something I am missing or is there no way to change them?

Thanks.

Doug VanDam

Gizmo001
February 5th, 2003, 02:46 PM
Use the DataGridTableStyle object. It allows you to programmatically change the format of a table. If you want example, goto Microsoft's How to site and download "How to automate office." Within it you will find code for a datagrid manipulation. Good Luck.

Staffy
February 6th, 2003, 02:21 AM
In Vis.Studio bring up the html page, find datagrid and then you will see the columns like <asp:BoundColumn> or something like that, then just set the cursor somewhere inide the tag and you will get a list of properties for that column. Choose 'ItemStyle-Height' and set your desired value....

Staffy