Designed Bound Datagridview Empty

Hi,

I have the following Problem:
( Visual Studio 2005, Dotnet 2.0 MySQL, c# )
Whenever I bind my Datasource to a DataGridView with the designer, I can see the columnheaders in the designer as expected; but the Datagridview is never populated with the Data. When I start the Application, the DataGridView remains empty. ( I worked around the mysql "double-dot" bug in the select statement and a datapreview works alright)

When I bind the DataSource manually to the DataGridView it is filled properly after Application startup.

I am sure the problem is a noob one - but please help anyway.

tia




Answer this question

Designed Bound Datagridview Empty

  • needfulthing

    have your form in design view, and drag and drop a table from your data sources window, run

    is that what you are talking about



  • Alex McAuliffe

    perhaps:

    there is no fill method called



  • Timmy

    If you add a data source to the data source window and drop it on the form. The datagridview will be added to the form and the fill command will be added to the form load event. I am not sure if the MySql plug in for Visual Studio 2005 does that.

  • PiGuy

    well, yes.. with the fill Method added manually it works. :-)
    I only thought there was some way to init the dgv with the Designer. Is there not
    Anyway: Thanks for your answer to 'such a ' question .



  • Designed Bound Datagridview Empty