Home Forums WinForms controls Xceed Grid for WinForms How to bind data to a column?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #16451 |

    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)

    User (Old forums)
    Member
    Post count: 23064

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.