Beispiel #1
0
    protected void Data_Bind()
    {
        DataTable pageData = AffairAction.GetPageData(this.PrjCode, this.Session["DATUMCLASS"].ToString(), this.DDLLookup.SelectedValue, this.TxtLookup.Text);

        this.ViewState[HighlightsList.resourceTable] = pageData;
        this.GridView1.DataSource = pageData;
        this.GridView1.DataBind();
    }
Beispiel #2
0
    protected void Data_Bind()
    {
        this.Session["DATUMCLASS"].ToString();
        DataTable pageData = AffairAction.GetPageData(this.PrjCode, this.Session["DATUMCLASS"].ToString(), this.DDLLookup.SelectedValue, this.TxtLookup.Text);

        DataRow[] array     = pageData.Select(this.wheresql);
        DataTable dataTable = new DataTable();

        dataTable = pageData.Clone();
        DataRow[] array2 = array;
        for (int i = 0; i < array2.Length; i++)
        {
            DataRow row = array2[i];
            dataTable.ImportRow(row);
        }
        this.GridView1.DataSource = dataTable;
        this.GridView1.DataBind();
    }