Ejemplo n.º 1
0
 protected void ClearSearchBTN_Click(object sender, EventArgs e)
 {
     SearchTXT.Text = "";
     //DataTable InitialDT = new DataTable();
     //CustomersGRD.DataSource = InitialDT;
     //CustomersGRD.DataBind();
     CustomersGRD.DataSource = SelectCustomers();
     CustomersGRD.DataBind();
 }
Ejemplo n.º 2
0
 protected void SearchBTN_Click(object sender, EventArgs e)
 {
     if (SearchTXT.Text == string.Empty)
     {
         CustomersGRD.DataSource = SelectCustomers();
         CustomersGRD.DataBind();
     }
     else
     {
         //CustomersGRD.MasterTableView.CommandItemSettings.ShowExportToCsvButton = false;
         ////ShowExportToExcelButton
         //CustomersGRD.DataSource = SelectCustomersView();
         //CustomersGRD.DataBind();
         CustomersGRD.DataSource = SelectCustomers();
         CustomersGRD.DataBind();
     }
 }