This is a migrated thread and some comments may be shown as answers.

Various Question about RadGridViews

1 Answer 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Cody
Top achievements
Rank 1
Cody asked on 07 Jun 2011, 05:30 PM
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?

Thanks,

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 10 Jun 2011, 11:02 AM
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,
Jack
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.
Tags
General Discussions
Asked by
Cody
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or