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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement