Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataTable must be set prior to using DataView.
Message
De
06/09/2004 04:58:27
Andrew Fell-Gordon
Calypso Publications Ltd
Enfield, Royaume Uni
 
 
À
03/09/2004 12:42:20
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00939075
Message ID:
00939683
Vues:
15
Thanks. I'll give it a try

best regards

Andrew

>My guess, since you say you're doing this in the constructor, is that maybe the DataSet hasn't been instantiated yet? Not sure where you're doing that. Try moving this code to the Load event maybe?
>
>~~Bonnie
>
>
>>Thanks for the comments. I originally tried setting up the view as you suggest and set the sort expression at the same time in the constructor. That gave me the same error on the constructor line. So, having seen a comment on google groups that reported the same message but said they had cured it by creating the view first and then setting the table afterwards I changed to the code I have now.
>>
>>The error occurs when I set the sort property.
>>
>>As to why I am setting 2 default values, pure ignorance, I'm afraid.
>>
>>Regards
>>
>>Andrew
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform