Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Casting errors should be caught during compiling, right?
Message
De
21/11/2004 17:48:10
 
 
À
21/11/2004 17:41:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Divers
Thread ID:
00963257
Message ID:
00963367
Vues:
7
Cetin,

No, I think I was right ... if you arrow down past the last row (which you'd do eventually if you're "pressing arrow keys irregularly), the grid will automatically add a blank row to the end of your DataSet. This *is* what's causing the invalid cast error. Trust me. <s>

~~Bonnie


>Nope it's not that. It happens when you don't add anything. ie: One of the ways to generate:
>Drop the dtpicker
>Press arrows irregularly (already there is code error).
>Cetin
>
>>Cetin,
>>
>>It looks to me like this is happening when you get to the point in the grid when you're adding a new row. Everything is NULL and this sample code is obviously not doing any kind of special handling for NULLs. That's where the error message is coming from. NULLs can be a real pain sometime, but they are a special case that need special handling.
>>
>>~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform