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

GridView Autosize & horizontal scrollbars

5 Answers 422 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pablo
Top achievements
Rank 1
Pablo asked on 11 Jul 2011, 03:39 PM
Hello, I'm having problems with a gridview. I have a gridview control inside a panel that shrinks and grows with splitters. The gridview is initially configured to adjust it's columns using BestFit alghorithm and size mode is None. When the gridview is bigger than the parent panel, the scrollbars appear and viceversa. The problem appears when the user sets the GridView to autosize (Autosize columns mode to Fill). If the GridView width is smaller than the sum of the column's minimum width, I would expect that the horizontal scrollbar appears since the GridView shouldn't shrink anymore. But the behaviour is that the grid shrinks up to it's minum but the splitter crops the grid and the scrollbars don't appear.
Is there a workaround to this?
Are you fixing this anytime?

Below is the code and attached is an image of the running example.

Code behind:
using System;
using System.ComponentModel;
using System.Windows.Forms;
using Telerik.WinControls.UI;
  
namespace RadGridViewWithAutoSizeAndScolls
{
    public partial class Form1 : Form
    {
        private BindingList<Instrument> _list;
        private readonly int _gridMinimumSize;
  
        public Form1()
        {
            InitializeComponent();
              
            FillGridView();
  
            IntializeGrid(BestFitColumnMode.DisplayedCells);
  
        }
          
        private void IntializeGrid(BestFitColumnMode mode)
        {
            grdRatesMarkets.Dock = DockStyle.Fill;
              
            grdRatesMarkets.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.None;
  
            foreach (var column in grdRatesMarkets.Columns)
            {
                column.AutoSizeMode = mode;
            }
            grdRatesMarkets.MasterTemplate.BestFitColumns();
        }
  
        private void FillGridView()
        {
  
            var row1 = new Instrument((int)Instrument.Pairs.GBP_AUD)
            {
                Ask = "1",
                Bid = Convert.ToDecimal(Math.Sqrt(2)),
                LotAmount = 1,
                Direction = 1,
                High = 2,
                Low = -1,
                BuyMtm = "1",
                Time = DateTime.Now.AddHours(4).ToString()
            };
  
  
            var row2 = new Instrument((int)Instrument.Pairs.GBP_USD)
            {
                Ask = "1",
                Bid = 0,
                LotAmount = 1,
                Direction = 1,
                High = 2,
                Low = -1,
                BuyMtm = "1",
                Time = DateTime.Now.ToShortTimeString()
            };
            var row3 = new Instrument((int)Instrument.Pairs.GBP_HKD)
            {
                Ask = "1",
                Bid = 0,
                LotAmount = 1,
                Direction = 1,
                High = 2,
                Low = -1,
                BuyMtm = "1",
                Time = DateTime.Now.ToShortTimeString()
            };
            _list = new BindingList<Instrument> { (row1), (row2), (row3) };
            grdRatesMarkets.DataSource = _list;
  
        }
  
        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            ChangeAutosizeGrid(checkBox1.Checked);
        }
  
        private void ChangeAutosizeGrid(bool autoSize)
        {
            if (autoSize)
            {
                grdRatesMarkets.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
                return;
            }
  
            grdRatesMarkets.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.None;
            IntializeGrid(BestFitColumnMode.DisplayedCells);
        }
    }
}

The designer class:
namespace RadGridViewWithAutoSizeAndScolls
{
    partial class Form1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components;
  
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
  
        #region Windows Form Designer generated code
  
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            Telerik.WinControls.UI.GridViewImageColumn gridViewImageColumn1 = new Telerik.WinControls.UI.GridViewImageColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn1 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn1 = new Telerik.WinControls.UI.GridViewCommandColumn();
            Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn2 = new Telerik.WinControls.UI.GridViewCommandColumn();
            Telerik.WinControls.UI.GridViewDecimalColumn gridViewDecimalColumn1 = new Telerik.WinControls.UI.GridViewDecimalColumn();
            Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn3 = new Telerik.WinControls.UI.GridViewCommandColumn();
            Telerik.WinControls.UI.GridViewCommandColumn gridViewCommandColumn4 = new Telerik.WinControls.UI.GridViewCommandColumn();
            Telerik.WinControls.UI.GridViewDateTimeColumn gridViewDateTimeColumn1 = new Telerik.WinControls.UI.GridViewDateTimeColumn();
            Telerik.WinControls.UI.GridViewDecimalColumn gridViewDecimalColumn2 = new Telerik.WinControls.UI.GridViewDecimalColumn();
            Telerik.WinControls.UI.GridViewDecimalColumn gridViewDecimalColumn3 = new Telerik.WinControls.UI.GridViewDecimalColumn();
            Telerik.WinControls.UI.GridViewDecimalColumn gridViewDecimalColumn4 = new Telerik.WinControls.UI.GridViewDecimalColumn();
            Telerik.WinControls.UI.GridViewDecimalColumn gridViewDecimalColumn5 = new Telerik.WinControls.UI.GridViewDecimalColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn2 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn3 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn4 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn5 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn6 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn7 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            Telerik.WinControls.UI.GridViewTextBoxColumn gridViewTextBoxColumn8 = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            this.splitContainer1 = new System.Windows.Forms.SplitContainer();
            this.splitContainer2 = new System.Windows.Forms.SplitContainer();
            this.grdRatesMarkets = new Telerik.WinControls.UI.RadGridView();
            this.checkBox1 = new System.Windows.Forms.CheckBox();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
            this.splitContainer2.Panel1.SuspendLayout();
            this.splitContainer2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.grdRatesMarkets)).BeginInit();
            this.SuspendLayout();
            // 
            // splitContainer1
            // 
            this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer1.Location = new System.Drawing.Point(0, 0);
            this.splitContainer1.Name = "splitContainer1";
            this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainer1.Panel1
            // 
            this.splitContainer1.Panel1.Controls.Add(this.splitContainer2);
            // 
            // splitContainer1.Panel2
            // 
            this.splitContainer1.Panel2.Controls.Add(this.checkBox1);
            this.splitContainer1.Size = new System.Drawing.Size(540, 505);
            this.splitContainer1.SplitterDistance = 273;
            this.splitContainer1.TabIndex = 0;
            // 
            // splitContainer2
            // 
            this.splitContainer2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer2.Location = new System.Drawing.Point(0, 0);
            this.splitContainer2.Name = "splitContainer2";
            // 
            // splitContainer2.Panel1
            // 
            this.splitContainer2.Panel1.Controls.Add(this.grdRatesMarkets);
            this.splitContainer2.Size = new System.Drawing.Size(540, 273);
            this.splitContainer2.SplitterDistance = 312;
            this.splitContainer2.TabIndex = 0;
            // 
            // grdRatesMarkets
            // 
            this.grdRatesMarkets.AutoScroll = true;
            this.grdRatesMarkets.AutoSizeRows = true;
            this.grdRatesMarkets.Dock = System.Windows.Forms.DockStyle.Fill;
            this.grdRatesMarkets.Font = new System.Drawing.Font("Segoe UI", 8.25F);
            this.grdRatesMarkets.ImageScalingSize = new System.Drawing.Size(12, 12);
            this.grdRatesMarkets.Location = new System.Drawing.Point(0, 0);
            // 
            // grdRatesMarkets
            // 
            this.grdRatesMarkets.MasterTemplate.AllowAddNewRow = false;
            this.grdRatesMarkets.MasterTemplate.AllowCellContextMenu = false;
            this.grdRatesMarkets.MasterTemplate.AllowColumnChooser = false;
            this.grdRatesMarkets.MasterTemplate.AllowColumnHeaderContextMenu = false;
            this.grdRatesMarkets.MasterTemplate.AllowDeleteRow = false;
            this.grdRatesMarkets.MasterTemplate.AllowDragToGroup = false;
            gridViewImageColumn1.AllowFiltering = false;
            gridViewImageColumn1.AllowSort = false;
            gridViewImageColumn1.FieldName = "DirectionArrow";
            gridViewImageColumn1.HeaderText = "  ";
            gridViewImageColumn1.MaxWidth = 24;
            gridViewImageColumn1.MinWidth = 24;
            gridViewImageColumn1.Name = "DirectionArrow";
            gridViewImageColumn1.RowSpan = 24;
            gridViewImageColumn1.Width = 24;
            gridViewTextBoxColumn1.AllowFiltering = false;
            gridViewTextBoxColumn1.AllowGroup = false;
            gridViewTextBoxColumn1.AllowSort = false;
            gridViewTextBoxColumn1.FieldName = "Instrument";
            gridViewTextBoxColumn1.HeaderText = "Instrument";
            gridViewTextBoxColumn1.MinWidth = 20;
            gridViewTextBoxColumn1.Name = "InstrumentColumn";
            gridViewTextBoxColumn1.ReadOnly = true;
            gridViewCommandColumn1.AllowSort = false;
            gridViewCommandColumn1.DefaultText = "Sell";
            gridViewCommandColumn1.HeaderText = "  ";
            gridViewCommandColumn1.MinWidth = 40;
            gridViewCommandColumn1.Name = "SellColumn";
            gridViewCommandColumn1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
            gridViewCommandColumn1.UseDefaultText = true;
            gridViewCommandColumn2.AllowSort = false;
            gridViewCommandColumn2.DefaultText = "0";
            gridViewCommandColumn2.FieldName = "Bid";
            gridViewCommandColumn2.HeaderText = "Bid";
            gridViewCommandColumn2.MinWidth = 50;
            gridViewCommandColumn2.Name = "BidColumn";
            gridViewDecimalColumn1.AllowFiltering = false;
            gridViewDecimalColumn1.AllowGroup = false;
            gridViewDecimalColumn1.AllowSort = false;
            gridViewDecimalColumn1.DecimalPlaces = 0;
            gridViewDecimalColumn1.FieldName = "LotAmount";
            gridViewDecimalColumn1.HeaderText = "Lot Amount";
            gridViewDecimalColumn1.Maximum = new decimal(new int[] {
            100,
            0,
            0,
            0});
            gridViewDecimalColumn1.Minimum = new decimal(new int[] {
            1,
            0,
            0,
            0});
            gridViewDecimalColumn1.MinWidth = 30;
            gridViewDecimalColumn1.Name = "LotAmount";
            gridViewDecimalColumn1.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
            gridViewDecimalColumn1.VisibleInColumnChooser = false;
            gridViewCommandColumn3.AllowSort = false;
            gridViewCommandColumn3.DefaultText = "0";
            gridViewCommandColumn3.FieldName = "Ask";
            gridViewCommandColumn3.HeaderText = "Ask";
            gridViewCommandColumn3.MinWidth = 50;
            gridViewCommandColumn3.Name = "AskColumn";
            gridViewCommandColumn4.AllowSort = false;
            gridViewCommandColumn4.DefaultText = "Buy";
            gridViewCommandColumn4.HeaderText = "  ";
            gridViewCommandColumn4.MinWidth = 40;
            gridViewCommandColumn4.Name = "BuyColumn";
            gridViewCommandColumn4.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
            gridViewCommandColumn4.UseDefaultText = true;
            gridViewDateTimeColumn1.AllowFiltering = false;
            gridViewDateTimeColumn1.AllowGroup = false;
            gridViewDateTimeColumn1.AllowSort = false;
            gridViewDateTimeColumn1.FieldName = "Time";
            gridViewDateTimeColumn1.HeaderText = "Time";
            gridViewDateTimeColumn1.MinWidth = 20;
            gridViewDateTimeColumn1.Name = "TimeColumn";
            gridViewDateTimeColumn1.ReadOnly = true;
            gridViewDecimalColumn2.AllowFiltering = false;
            gridViewDecimalColumn2.AllowGroup = false;
            gridViewDecimalColumn2.AllowSort = false;
            gridViewDecimalColumn2.FieldName = "High";
            gridViewDecimalColumn2.HeaderText = "High";
            gridViewDecimalColumn2.MinWidth = 20;
            gridViewDecimalColumn2.Name = "HighColumn";
            gridViewDecimalColumn2.ReadOnly = true;
            gridViewDecimalColumn2.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
            gridViewDecimalColumn3.AllowFiltering = false;
            gridViewDecimalColumn3.AllowGroup = false;
            gridViewDecimalColumn3.AllowSort = false;
            gridViewDecimalColumn3.FieldName = "Low";
            gridViewDecimalColumn3.HeaderText = "Low";
            gridViewDecimalColumn3.MinWidth = 20;
            gridViewDecimalColumn3.Name = "LowColumn";
            gridViewDecimalColumn3.ReadOnly = true;
            gridViewDecimalColumn3.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
            gridViewDecimalColumn4.AllowFiltering = false;
            gridViewDecimalColumn4.AllowGroup = false;
            gridViewDecimalColumn4.AllowSort = false;
            gridViewDecimalColumn4.FieldName = "PrmSell";
            gridViewDecimalColumn4.HeaderText = "PrmSell%";
            gridViewDecimalColumn4.MinWidth = 20;
            gridViewDecimalColumn4.Name = "PrmSellColumn";
            gridViewDecimalColumn4.ReadOnly = true;
            gridViewDecimalColumn4.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
            gridViewDecimalColumn5.AllowFiltering = false;
            gridViewDecimalColumn5.AllowGroup = false;
            gridViewDecimalColumn5.AllowSort = false;
            gridViewDecimalColumn5.FieldName = "PrmBuy";
            gridViewDecimalColumn5.HeaderText = "PrmBuy%";
            gridViewDecimalColumn5.MinWidth = 20;
            gridViewDecimalColumn5.Name = "PrmBuyColumn";
            gridViewDecimalColumn5.ReadOnly = true;
            gridViewDecimalColumn5.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
            gridViewTextBoxColumn2.AllowFiltering = false;
            gridViewTextBoxColumn2.AllowGroup = false;
            gridViewTextBoxColumn2.AllowSort = false;
            gridViewTextBoxColumn2.FieldName = "Alarm";
            gridViewTextBoxColumn2.HeaderText = "Alarm";
            gridViewTextBoxColumn2.MinWidth = 20;
            gridViewTextBoxColumn2.Name = "AlarmColumn";
            gridViewTextBoxColumn2.ReadOnly = true;
            gridViewTextBoxColumn2.Width = 54;
            gridViewTextBoxColumn3.AllowFiltering = false;
            gridViewTextBoxColumn3.AllowGroup = false;
            gridViewTextBoxColumn3.AllowSort = false;
            gridViewTextBoxColumn3.FieldName = "SellAmount";
            gridViewTextBoxColumn3.HeaderText = "Sell-Amount";
            gridViewTextBoxColumn3.IsVisible = false;
            gridViewTextBoxColumn3.Name = "SellAmountColumn";
            gridViewTextBoxColumn3.ReadOnly = true;
            gridViewTextBoxColumn4.AllowFiltering = false;
            gridViewTextBoxColumn4.AllowGroup = false;
            gridViewTextBoxColumn4.AllowSort = false;
            gridViewTextBoxColumn4.FieldName = "SellMtm";
            gridViewTextBoxColumn4.HeaderText = "Sell-MTM P/L";
            gridViewTextBoxColumn4.IsVisible = false;
            gridViewTextBoxColumn4.Name = "SellMtmPLColumn";
            gridViewTextBoxColumn4.ReadOnly = true;
            gridViewTextBoxColumn5.AllowFiltering = false;
            gridViewTextBoxColumn5.AllowGroup = false;
            gridViewTextBoxColumn5.AllowSort = false;
            gridViewTextBoxColumn5.FieldName = "BuyAmount";
            gridViewTextBoxColumn5.HeaderText = "Buy-Amount";
            gridViewTextBoxColumn5.IsVisible = false;
            gridViewTextBoxColumn5.Name = "BuyAmountColumn";
            gridViewTextBoxColumn5.ReadOnly = true;
            gridViewTextBoxColumn6.AllowFiltering = false;
            gridViewTextBoxColumn6.AllowGroup = false;
            gridViewTextBoxColumn6.AllowSort = false;
            gridViewTextBoxColumn6.HeaderText = "Buy-MTM P/L";
            gridViewTextBoxColumn6.IsVisible = false;
            gridViewTextBoxColumn6.Name = "BuyMtmPLColumn";
            gridViewTextBoxColumn6.ReadOnly = true;
            gridViewTextBoxColumn7.AllowFiltering = false;
            gridViewTextBoxColumn7.AllowGroup = false;
            gridViewTextBoxColumn7.AllowSort = false;
            gridViewTextBoxColumn7.HeaderText = "Net Amount";
            gridViewTextBoxColumn7.IsVisible = false;
            gridViewTextBoxColumn7.Name = "NetAmountColumn";
            gridViewTextBoxColumn7.ReadOnly = true;
            gridViewTextBoxColumn8.AllowFiltering = false;
            gridViewTextBoxColumn8.AllowGroup = false;
            gridViewTextBoxColumn8.AllowSort = false;
            gridViewTextBoxColumn8.HeaderText = "Net MTM P/L";
            gridViewTextBoxColumn8.IsVisible = false;
            gridViewTextBoxColumn8.Name = "NetMtmPLColumn";
            gridViewTextBoxColumn8.ReadOnly = true;
            this.grdRatesMarkets.MasterTemplate.Columns.AddRange(new Telerik.WinControls.UI.GridViewDataColumn[] {
            gridViewImageColumn1,
            gridViewTextBoxColumn1,
            gridViewCommandColumn1,
            gridViewCommandColumn2,
            gridViewDecimalColumn1,
            gridViewCommandColumn3,
            gridViewCommandColumn4,
            gridViewDateTimeColumn1,
            gridViewDecimalColumn2,
            gridViewDecimalColumn3,
            gridViewDecimalColumn4,
            gridViewDecimalColumn5,
            gridViewTextBoxColumn2,
            gridViewTextBoxColumn3,
            gridViewTextBoxColumn4,
            gridViewTextBoxColumn5,
            gridViewTextBoxColumn6,
            gridViewTextBoxColumn7,
            gridViewTextBoxColumn8});
            this.grdRatesMarkets.MasterTemplate.EnableSorting = false;
            this.grdRatesMarkets.MasterTemplate.ShowFilteringRow = false;
            this.grdRatesMarkets.MasterTemplate.ShowRowHeaderColumn = false;
            this.grdRatesMarkets.Name = "grdRatesMarkets";
            // 
            // 
            // 
            this.grdRatesMarkets.RootElement.AccessibleDescription = null;
            this.grdRatesMarkets.RootElement.AccessibleName = null;
            this.grdRatesMarkets.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
            this.grdRatesMarkets.RootElement.AngleTransform = 0F;
            this.grdRatesMarkets.RootElement.FlipText = false;
            this.grdRatesMarkets.RootElement.Margin = new System.Windows.Forms.Padding(0);
            this.grdRatesMarkets.RootElement.MinSize = new System.Drawing.Size(0, 0);
            this.grdRatesMarkets.RootElement.Padding = new System.Windows.Forms.Padding(0);
            this.grdRatesMarkets.RootElement.Text = null;
            this.grdRatesMarkets.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
            this.grdRatesMarkets.ShowCellErrors = false;
            this.grdRatesMarkets.ShowGroupPanel = false;
            this.grdRatesMarkets.ShowNoDataText = false;
            this.grdRatesMarkets.ShowRowErrors = false;
            this.grdRatesMarkets.Size = new System.Drawing.Size(310, 271);
            this.grdRatesMarkets.TabIndex = 1;
            // 
            // checkBox1
            // 
            this.checkBox1.AutoSize = true;
            this.checkBox1.Location = new System.Drawing.Point(210, 101);
            this.checkBox1.Name = "checkBox1";
            this.checkBox1.Size = new System.Drawing.Size(66, 17);
            this.checkBox1.TabIndex = 0;
            this.checkBox1.Text = "Autosize";
            this.checkBox1.UseVisualStyleBackColor = true;
            this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(540, 505);
            this.Controls.Add(this.splitContainer1);
            this.Name = "Form1";
            this.Text = "Form1";
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            this.splitContainer1.Panel2.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
            this.splitContainer1.ResumeLayout(false);
            this.splitContainer2.Panel1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
            this.splitContainer2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.grdRatesMarkets)).EndInit();
            this.ResumeLayout(false);
  
        }
  
        #endregion
  
        private System.Windows.Forms.SplitContainer splitContainer1;
        private System.Windows.Forms.SplitContainer splitContainer2;
        private Telerik.WinControls.UI.RadGridView grdRatesMarkets;
        private System.Windows.Forms.CheckBox checkBox1;
    }
}

5 Answers, 1 is accepted

Sort by
0
Svett
Telerik team
answered on 13 Jul 2011, 10:40 AM
Hello Pablo,

When the RadGridView's AutoSizeColumnsMode is set to Fill, the horizontal scroll-bar does not appear. This is know limitation that we will improve in one of the next releases. In the meantime, I cannot provide you with a work around due to the missing functionality.

Best wishes,
Svett
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Mark
Top achievements
Rank 1
answered on 11 May 2012, 11:31 PM
Is there a fix for this yet? I have my auto-size columns mode set to fill with minimum column widths, which causes some columns to appear out of the horizontal width of the grid view.

I'm using the latest Q1 2012 release and the horizontal scroll bars aren't showing properly.

Do you have a solution for this yet? Please let me know i really need one...
0
Svett
Telerik team
answered on 16 May 2012, 02:32 PM
Hi Mark,

We have not addressed this feature yet.  You can vote for it in our public issue tracking system in order to increase its priority.

Kind regards,
Svett
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Karl B
Top achievements
Rank 1
answered on 29 May 2015, 03:17 PM
[quote]Svett said:Hi Mark,

We have not addressed this feature yet.  You can vote for it in our public issue tracking system in order to increase its priority.

Kind regards,
Svett
the Telerik team
 
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
 

[/quote]

 

It is 2015, was this issue ever addressed? The public issue tracking links do not work.

0
Stefan
Telerik team
answered on 01 Jun 2015, 06:56 AM
Hello Karl,

The Public Issue Tracking System was transferred to our Feedback Portal. Here you can find this particular case: http://feedback.telerik.com/Project/154/Feedback/Details/112143-fix-horizontal-scroll-bar-should-appear-when-auto-size-columns-mode-is-enabled-a. As you can see, the item has been resolved back in Q1 2014.

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items


Tags
GridView
Asked by
Pablo
Top achievements
Rank 1
Answers by
Svett
Telerik team
Mark
Top achievements
Rank 1
Karl B
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or