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 add to the cells set header

Thread ID:





130963 Jun 13,2017 04:12 PM Jun 14,2017 04:30 AM Windows Forms 1
Tags: GridListControl
Stephen Gear
Asked On June 13, 2017 04:13 PM

HiBit of a dumb qestion but as the subject says.Code like GridlistControl.items.add("name"); compiles but makes the program fail.Is there more basic howtos some where I can view?Many Thanks in advance,

Mohanraj Gunasekaran [Syncfusion]
Replied On June 14, 2017 04:30 AM

Hi Stephen, 

Thanks for your interest in Syncfusion product. 

In GridListControl, you cannot add the items using Items property without binding the datasource with GridListControl. So, you should bind the datasource for GridListControl using DataSource property. Please refer to the below code example and the sample, 

Code example 
this.gridListControl1.DataSource = USStates; 
If you want to show the header for GridListControl, you should enable the ShowColumnHeader property. Please refer to the below code example, 
Code example 
this.gridListControl1.ShowColumnHeader = true; 
Sample link: GridListControl 

Please refer the following UG and Kb link for your reference, 
Mohanraj G 


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.