We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to show a scrollbar in a ListControlPart

Thread ID:

Created:

Updated:

Platform:

Replies:

127015 Oct 20,2016 10:40 PM Oct 24,2016 12:21 AM Windows Forms 3
loading
Tags: GridGroupingControl
ligyste
Asked On October 20, 2016 10:40 PM




I bind a datatalbe to a GridGroupingControl's GridColumnDescriptor

DataTable table=new DataTable();

GridColumnDescriptor c =Data_GridGroupingControl.TableDescriptor.Columns[0];
 c.Appearance.AnyRecordFieldCell.DataSource =table;
                    c.Appearance.AnyRecordFieldCell.DisplayMember = "c1";
                    c.Appearance.AnyRecordFieldCell.ValueMember = "c1";
                    c.Appearance.AnyRecordFieldCell.DropDownStyle = GridDropDownStyle.Exclusive;





 Data_GridGroupingControl.TableControlCurrentCellShowingDropDown += new Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCurrentCellShowingDropDownEventHandler(Data_GridGroupingControl_TableControlCurrentCellShowingDropDown);




 private void Data_GridGroupingControl_TableControlCurrentCellShowingDropDown(object sender, GridTableControlCurrentCellShowingDropDownEventArgs e)
        {


      if (e.TableControl.CurrentCell.Renderer is GridDropDownGridListControlCellRenderer)
            {
                GridDropDownGridListControlCellRenderer renderer = e.TableControl.CurrentCell.Renderer as GridDropDownGridListControlCellRenderer;

                renderer.ListControlPart.ItemHeight = 30;

                renderer.ListControlPart.Grid.Width = 700;
    

               
           ////////////////// //How to show the scroolbar??

      

            }
}



Thanks!

Piruthiviraj Malaimelraj [Syncfusion]
Replied On October 21, 2016 08:05 AM

Hi ligyste, 

Thanks for your interest in Syncfusion products. 
We have analyzed your query and created simple sample as per your requirement. As per your scenario, you are using Metro theme for GridGroupingControl in your application . To enable the scroll bar in GridListControl cell of your application, you can use Office2007ScrollBars property of GridDropDownGridListControlCellRenderer. Please make use of below code, 
Code example 
GridDropDownGridListControlCellRenderer renderer = (GridDropDownGridListControlCellRenderer)this.gridGroupingControl1.TableControl.CellRenderers["GridListControl"]; 
renderer.ListControlPart.Grid.Office2007ScrollBars = true
renderer.ListControlPart.Grid.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro; 
 
 
 
Sample link 
 
Regards, 
Piruthiviraj 


ligyste
Replied On October 21, 2016 09:25 PM

Thank you very much!I have resolved the  problem.


Mohanraj Gunasekaran [Syncfusion]
Replied On October 24, 2016 12:21 AM

Hi ligyste, 
 
We are glad to know that your reported problem has resolved. Please let us know, if you need any further assistance. 

Regards, 
Mohanraj G. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;