Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Designer to Define Grids
Message
De
01/02/2010 07:51:25
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01446780
Message ID:
01446882
Vues:
37
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform