Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSet Sort Error
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
DataSet Sort Error
Miscellaneous
Thread ID:
01378880
Message ID:
01378880
Views:
71
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
Next
Reply
Map
View

Click here to load this message in the networking platform