Various Question about RadGridViews

2 posts, 0 answers
  1. Cody
    Cody avatar
    1 posts
    Member since:
    Jun 2011

    Posted 07 Jun 2011 Link to this post

    Hello All,

    I have been working with a RadGridView, and I was wondering about a few things.

    One, I have a gridview that is populated when an item from a list is selected and a button is checked. When I have BestFitColumns(), the column headers are not present. If I close the table and re-open it, they then appear. Ideas (this might be a bug that was fixed in SP1--I am running the version prior to SP1)?

    Second, I have the horizontal scroll bar property set in one of my gridviews, and it never appears. I have tried manually sizing the columns, so that the columns would be bigger than the window and force a scroll bar; however, this isn't working (in fact, in this particular table, it appears that the size of the columns is being controlled by something else). Ideas?

  2. Jack
    Jack avatar
    2333 posts

    Posted 10 Jun 2011 Link to this post

    Hi Cody,

    I could not reproduce the BestFitColumns issue using our latest release - Q1 2011 SP1. I recommend that you try it, if the issue continues to appear, send us your application and we will be able to investigate this issue further.

    You can force the horizontal scrollbar to show by setting the HorizontalScrollState property to AlwaysShow:
    this.radGridView1.HorizontalScrollState = ScrollState.AlwaysShow;

    RadGridView manages the scrollbar visibility and it will hide the scrollbar when the AutoSizeColumnsMode property is set to true. In this case RadGridView adjusts column widths to fill the visible area of the control.

    I hope this helps. If you have any additional questions, do not hesitate to contact us.

    Kind regards,
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Back to Top