Data Grid Problems

strawhat

New Member
I've been having a problem with some stuff, I'm using Visual Studio.net. I think I have the correct code, but I'm not able to see anything, although no error occurs. <BR><BR>I have a datagrid that is on a .aspx page<BR><%@ Page CodeBehind="SoftwareFormtest.aspx.cs" Language="c#" AutoEventWireup="false" Inherits="Software_Library.SoftwareForm" %><BR><BR><ASP:DataGrid id="MyDataGrid" runat="server" /><BR><BR>it's got the normal HTML stuff.<BR><BR>and on the aspx.cs page: <BR><BR>void Page_Load(object sender, System.EventArgs e)<BR>{<BR> string connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/InetPub/wwwroot/SoftwareLibrary/newinventory.mdb";<BR> string sql="Select * From CheckList";<BR> OleDbConnection conn = new OleDbConnection(connString);<BR> OleDbDataAdapter da = new OleDbDataAdapter(sql,conn);<BR><BR> DataSet ds = new DataSet();<BR> da.Fill(ds, "CheckList");<BR> DataTable table1 = ds.Tables["CheckList"];<BR><BR> MyDataGrid.DataSource = table1;<BR> MyDataGrid.DataBind(); <BR>}what happens if you just:<BR><BR>MyDataGrid.DataSource = ds;<BR><BR>???<BR>Nothing still
 
Back
Top