using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;
using System.Text;
public partial class Default3 : System.Web.UI.Page
{
DataSet ds1;
public Font_data_bind str = new Font_data_bind();
protected void Page_Load(object sender, EventArgs e)
{
StringBuilder sb11 = new StringBuilder();
DataSet ds = new DataSet();
ds = Font_data_bind.select (select *from jfxm);
// 如何获取ds 里的数据啊;
DataRow[] rows = new DataRow[ds.Tables["OtherTable"].Rows.Count];
}
------解决方案--------------------------------------------------------
ds.tables[0].rows[][]
获取具体每行的数据
------解决方案--------------------------------------------------------
- C# code
DbDataAdapter ap = Provider.CreateDataAdapter(); ap.SelectCommand = cmd; DataSet ds = new DataSet(); ap.Fill(ds, "OtherTable");
------解决方案--------------------------------------------------------
ds.Table[索引]是获取索引处的表数据
ds.Table[索引].Rows[索引][列名]是获取索引处表中的(索引)某一行的(列名)某列的数据
------解决方案--------------------------------------------------------
------解决方案--------------------------------------------------------