Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to delete a group of rows from a datatable?
Message
De
10/12/2007 11:33:07
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
10/12/2007 11:32:30
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01274269
Message ID:
01274462
Vues:
15
>>Joaquim,
>>You could do that this way:
>>
>> string CRefeicao = "01", CFamiliaPrato = "02";
>> string strFilter =
>>    String.Format("CRefeicao = '{0}' and CFamiliaPrato = '{1}'",
>>                  CRefeicao,
>>                  CFamiliaPrato);
>> foreach( DataRow row in Detalhe.Select( strFilter ) )
>> {
>>   row.Delete();
>> }
>>
>>Cetin

Don't you still have the problem with the indexer in this example also?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform