-
datagrid question
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
-
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.
-
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