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.
Syncfusion Feedback

How to show a scrollbar in a ListControlPart

Thread ID:

Created:

Updated:

Platform:

Replies:

127015 Oct 21,2016 02:40 AM UTC Oct 24,2016 04:21 AM UTC WinForms 3
loading
Tags: GridGroupingControl
ligyste
Asked On October 21, 2016 02:40 AM UTC




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 12:05 PM UTC

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 22, 2016 01:25 AM UTC

Thank you very much!I have resolved the  problem.


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

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.

Warning Icon 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.Close Icon

;