Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why this code returns null?
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Why this code returns null?
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01347651
Message ID:
01347651
Vues:
60
Hi everybody,

I use similar code in other places and it works fine, but for some reason in RowDeleted event this code
DataRowView view = ProfilesGrid.Rows[e.RowIndex].DataItem as DataRowView;
returns null. The DataItem is null, but the type is DataRow


Is my only option to try to get names through columns (cells)?

Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform