Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sort & save changes in MM .NET Business Maint Form
Message
De
05/06/2006 07:02:57
Ralph Rutschmann
Anwendungsentwicklung
Stuttgart, Allemagne
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01126118
Message ID:
01127054
Vues:
14
Hello Kevin,

> 2. Bind your user interface controls
> to DataViews instead of DataTables

I fear this is far above my knowledge of C#, because I'm new to, coming from VFP.

Since I'm calling BO's as recommended in the jump start, it seems I get "DataSet containing result sets" where I bind my controls to. I do it exactly like this:
// Retrieve all employees
> this.oEmployee.GetAllData();
And this call returns indeed a "DataTable containing all data". So far, so bad.

But will following the DevGuid 'Working with DataViews' actually resolve the 'click problem' which is 'that after you click on the column to sort, the form's currency manager reports the wrong record as the current position for the data table.'?

Which brings me to the next question:
// Create a custom DataView sorted by phone
 dv = new DataView(ds.Tables["Shippers"]);
 dv.Sort = "Phone";
What does mean "dv.Sort = "Phone"? Ascending or Descending? Sorry for asking stupid questions, but I found no answer in the DevGuid. Do I have to define a separate DataView for each column of a grid? Is clicking then the header of a column sorting this column descending / ascending?
It would cost me many hours to find out all this by myself. Do you have any hint for me?

Thank you very much in advance and friendly greetings,

Ralph
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform