>Hi,
>
>I am trying to set up what columns are to be displayed in the grid (datagridview) - instead of all - but not getting something.
>
>First, when I set up the grid DataSource to the Binding sourse, the grid show all columns in the table. Here is how I was doing it in code:
>
> grid.DataSource = ProjectsBindingSource;
>
>
>But this is not what I want. I want only certain columns to be in the grid.
>
>So in the designer I click on the Smart Tag which opens the window where I can specify the Data Source. I set the data source to the data source ProjectBindingSource in the DataGridView Tasks. Then in the same list of tasks I click on Edit Columns. And I thought I would see the columns in the Data Source but nothing is shown. So basically I can't see a way to specify which column of the grid should take the column in the Data Source.
>
>What am I missing?
>
>TIA.
Are you sure that you didn't set your datasource to a dataset rather than a datatable or alike? Edit columns would show columns when there is a specific source.
Cetin