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 19:56:40
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
21/11/2004 17:48:10
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:
00963376
Vues:
7
No problem I can trust you and don't remember all keystrokes, mouse clicks I made (though I once reproduced with up arrow and I don't understand what's there telling to add a row as a response to up arrow). Anyway it was just a sample.
Cetin

>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform