예제 #1
0
    protected void RadGrid1_OnNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        var       presenter = new PMHoaDonDV(this);
        DataTable dt;

        if (txtsearch.Text == "")
        {
            dt = presenter.List(null);
        }
        else
        {
            dt = presenter.List(txtsearch.Text);
        }
        RadGrid1.DataSource = dt;
    }
예제 #2
0
    protected void txtsearch_OnTextChanged(object sender, EventArgs e)
    {
        var       presenter = new PMHoaDonDV(this);
        DataTable dt;

        dt = presenter.List(txtsearch.Text);
        RadGrid1.DataSource = dt;
        RadGrid1.DataBind();
    }