System.Data.DataRowView problem

From: kscdavefl (kscdavefl_at_discussions.microsoft.com)
Date: 08/06/04


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



Relevant Pages