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. Image for the cookie policy date
close icon

How to add to the cells set header

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,

1 Reply

MG Mohanraj Gunasekaran Syncfusion Team 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 

Live Chat Icon For mobile
Up arrow icon