简体   繁体   English

如何在网格视图中不计算网格列?

[英]How to count no grid columns in grid view?

How to count, kindly give advice or code. 如何计算,请给出建议或代码。 I want to count from above big gridview and display in below small gridview, can u help me how to count? 我想从较大的gridview上方进行计数,并在较小的gridview下方显示,您能帮助我如何进行计数吗?

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();
}

You have to advance throught data from the given DataSet in form like 您必须以如下形式提前处理来自给定DataSet的数据

string selectQuery = "username='" + username + "' AND " + "projectType='" + projectType + "'";

ds.Tables[0].Select(selectQuery, sortField);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM