Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Designer to Define Grids
Message
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01446780
Message ID:
01446932
Vues:
36
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.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform