CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2002
    Location
    Muskegon, Michigan
    Posts
    9

    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

  2. #2
    Join Date
    Dec 2002
    Posts
    305
    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.

  3. #3
    Join Date
    Oct 2002
    Location
    Malmoe Sweden
    Posts
    36
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured