Home › Forums › WinForms controls › Xceed Grid for WinForms › How to bind data to a column?
I have gone through the Xceed Grid help file and samples but I am unable to find a solution to perform the following task
I want to initially create an empty column with my own column header text. This I know how to do using the GridControl1.Columns.Add method.
Next I would call a stored procedure that returns a data set. How do I map or bind a column from a table in the data set to my created column on the grid?
Imported from legacy forums. Posted by dazed001 (had 756 views)
You need to set GridControl.AutoCreateColumns to false, create the column you want using DataBoundColumn, and set GridControl.DataSource to the DataSet you’re creating through the stored procedure.
Imported from legacy forums. Posted by André (had 745 views)