Results 1 to 2 of 2

Thread: Adding Units

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Location
    Worcester, MA
    Posts
    77

    Adding Units

    Hi I need to add the final width of the first 3 columns of my grid but dont know how to add units. I tried:

    DataGrid1.Columns(0).HeaderStyle.Width + DataGrid1.Columns(1).HeaderStyle.Width

    but it said no dice, if anyone has any guidance I'd appreciate it.
    "Find all you need in your mind if you take the time" -DT

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Width is adjusted at render time on the client browser based on table cell contents.

    The only way to maybe get these is through some javascript or something, but then that will only be after the page has been displayed. Or, you can manually set the column widths in the designer.

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