string strSQL = " Select * from Titles where 1=1 ";
BeylandMobileInterface._DataGridBind(dataGrid2, strSQL);
BeylandMobileDataBase.BeylandMDB BeylandSoftMobileDB = new
BeylandMobileDataBase.BeylandMDB();
public void _DataGridBind(System.Windows.Forms.DataGrid DataGrid1,
string strSQL)
{
DataSet ds = new DataSet();
DataTable dt = new DataTable();
ds=this.BeylandSoftMobileDB.QueryDataSet(strSQL);
dt = ds.Tables[0];
if (dt != null)
{
DataRow dr;
int i = 12 - dt.Rows.Count;
for (int j = 0; j < i; j++)
{
dr = dt.NewRow();
dt.Rows.Add(dr);
}
}
DataView dv = new DataView(dt);
DataGrid1.DataSource = dv;
}
/// <summary>
/// 查询返回DATASET
/// </summary>
/// <param name="SqlCe">SqlCe语句</param>
/// <returns>DataSet对象</returns>
public DataSet QueryDataSet(string SqlCe)
{
SqlCeCommand cmd = CreateCommand(SqlCe);
DataSet ds = new DataSet();
try
{
SqlCeDataAdapter dataAdapter = new
SqlCeDataAdapter(cmd);
dataAdapter.Fill(ds);
}
catch (Exception ex)
{
ex.Message.ToString();
ds = null;
}
finally
{
this.Close();
}
return ds;
}
我们能跟linux比嘛?您二着,您也把您公司的项目产品开放吧?反正您的精神境界已经和linux厂商相同了,我们大家等您开源您公司源码。