System.Data.DataRowView problem
From: kscdavefl (kscdavefl_at_discussions.microsoft.com)
Date: 08/06/04
- Next message: Susan: "appSettings configuration section error"
- Previous message: Jon Skeet [C# MVP]: "Re: About a class inherits class and implements interface"
- Next in thread: Ryan Riddell: "RE: System.Data.DataRowView problem"
- Reply: Ryan Riddell: "RE: System.Data.DataRowView problem"
- Reply: Mike Newton: "Re: System.Data.DataRowView problem"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 6 Aug 2004 11:01:01 -0700
I am trying to fill a datalist with table names from an Oracle database. The
program works fine using the following code:
private void GetTables()
{
// open a database connection
string con = connectLabel.Text;
cn = new System.Data.OleDb.OleDbConnection(con);
cn.Open();
//Declare a DataTable Object
System.Data.DataTable dt ;
//Query for getting the list of all tables from the schema , no restriction
dt = cn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);
//Display the tables in the tablesList
tablesList.DataSource = dt;
tablesList.DataBind();
}
However, the datalist displays System.data.DataRowView in the datalist when
I run the program. What do I need to change in the above code to fix this
problem.
Thanks,
Dave
- Next message: Susan: "appSettings configuration section error"
- Previous message: Jon Skeet [C# MVP]: "Re: About a class inherits class and implements interface"
- Next in thread: Ryan Riddell: "RE: System.Data.DataRowView problem"
- Reply: Ryan Riddell: "RE: System.Data.DataRowView problem"
- Reply: Mike Newton: "Re: System.Data.DataRowView problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|