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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add to the cells set header

Thread ID:





130963 Jun 13,2017 08:12 PM UTC Jun 14,2017 08:30 AM UTC WinForms 1
Tags: GridListControl
Stephen Gear
Asked On June 13, 2017 08:13 PM UTC

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 08:30 AM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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