Results 1 to 2 of 2

Thread: Get DataGridView display area width

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2006
    Location
    MI
    Posts
    1,969

    Get DataGridView display area width

    Is there a way to get the width of the display area of a DGV? By that I mean the width minus the vertical scroll bar. Is it a matter of just adding up the widths of all the visible columns? Is there an easier way?

  2. #2
    Fanatic Member
    Join Date
    Nov 2016
    Location
    Slovenia
    Posts
    575

    Re: Get DataGridView display area width

    What are you trying to achieve by this, set width of DGV manually and remove vertical scrollbar from It ? Msgbox(DGV.Width.ToString) shows you display area, but that's with scrollbars ofcourse...

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