如何计算,请提供建议或代码。我想从上面的大网格视图中计算并在下面的小网格视图中显示,你能帮我算一下吗?
public void fillgridview()
{
string prjname = ddlproject.SelectedItem.Text;
string frmDt = txtfrmdate.Text.ToString();
string Todt = txtEndDate.Text.ToString();
SqlConnection connection = new SqlConnection(GetConnectionString());
DataSet ds = new DataSet();
Dap_Proj.Fill(ds);
GVKeywordReport.DataSource = ds;
GVKeywordReport.DataBind();
}
答案 0 :(得分:0)
您必须以类似
的形式推进给定DataSet中的数据string selectQuery = "username='" + username + "' AND " + "projectType='" + projectType + "'";
ds.Tables[0].Select(selectQuery, sortField);