Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataSet Sort Error
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
DataSet Sort Error
Divers
Thread ID:
01378880
Message ID:
01378880
Vues:
73
I have a DataSet bound to a DataGridView. I'm trying to sort the grid:
dsContacts = csPIM.oDataAccess.ExecuteStoredProc("pp_GetContacts");

if (sSortColumnName == "")
{
    sSortColumnName = dsContacts.Tables[0].Columns[0].ColumnName;
}

DataView dtView = dsContacts.Tables[0].DefaultView;
dtView.Sort = sSortColumnName;

grdContacts.DataSource = dtView;
grdContacts.DataMember = dsContacts.Tables[0].TableName;
On the last line I get "Child list for field Table cannot be created."

What am I doing wrong here???
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform