>I think I found how to work with the VS designer on specifying columns of the grid in designer. I just want to be sure that I am not going to break something later.
>
>Here is what I did (everything in Design Mode):
>
>1. Click on Smart Tag (that little thingie at the top of the control)
>2. When grid Grid_Tasks window is open I click on Choose Data Source. (Initially only my BindingSource was visible there. But that didn't do any good as it was not showing any columns).
>3. I click on Add Project Data Source. This opens Data Source Configuration window.
>4. In the prompt "Where will application get the data" I click on Object (the other 2 choices are DataBase and Web Service. Then click on Next.
>5. Then I see all the projects in my application. I go to the DataSets project and drill down to the Data Table of the Data Set that should be used for this grid.
>6. Then, once the data table is set as a Data Source for the grid I can add/remove columns and set certain properties.
>Everything seem to work.
>
>The only concern is that now below the form (in the designer) there are 2 data sources: 1. Binding Source that I set up when I was designing this form 2. DataTable binding source (result of the steps above).
>
>Is it a problem that the form has two binding sources? One of them is used for all the controls and another for grid?
>
>Thank you for any input/suggestions on this topic.
Dmitry,
It should work. However, I suggest you to, on a new empty form:
-Show data sources window (Data\Show Data Sources).
-Connect and add your tables there
-Drag&drop one of the tables on to form (creates grid by default and adds needed BindingSource etc)
-Right click on table and select details
-Drag&drop again and this time you also get fields in detail mode
You can run and later check what it writes. Especially note that BindingSource has both DataSource and DataMember set. In your case probably you were missing the datamember.
PS: Have you ever thought of using Linq instead. Future is in there (say - my personal opinion).
Cetin