Home Forums WinForms controls Xceed Grid for WinForms Databound Grid, Forms and assigning the DataSource

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

    I have a project which dynamically generates a grid and populates it with a DataSource (using LINQ to SQL) and returns it to another process which then places that on a form.

    It appears from my testing that the Columns collection is not accessible unless the Grid has been associated with a Form prior to the DataSource being assigned as I am getting null reference when trying to access a column unless it occurs in that sequence.

    Is there some method that can be called to populate the columns from the datasource, as there is no actual form available at the time the Grid is created?

     Regards

    Craig

    Imported from legacy forums. Posted by Craig (had 1922 views)

    Diane [Xceed]
    Moderator
    Post count: 1353

    We have received the question by email as well and it has been answered through the email support system (case id 126998).

    Imported from legacy forums. Posted by Diane [Xceed] (had 918 views)

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