Exemple #1
0
    private void BindDataGrid()
    {
        DataSet dsTax = customerMaintenance.SelectTaxExempt(lblCustNumber.Text.Trim());

        if (dsTax != null)
        {
            dsTax.Tables[0].DefaultView.Sort = (hidSort.Value == "") ? "ResaleCertNo asc" : hidSort.Value;

            gvTax.DataSource = dsTax.Tables[0].DefaultView.ToTable();
            gvTax.DataBind();
        }
    }