Exemple #1
0
 private void searchbtn_Click(object sender, EventArgs e)
 {
     if (typecb.Text != "")
     {
         dataGridView1.DataSource       = lc.getCustomerMembershipByMID(Convert.ToInt32(typecb.SelectedValue));
         dataGridView1.Columns[0].Width = 70;
         dataGridView1.Columns[1].Width = 200;
         dataGridView1.Columns[2].Width = 140;
     }
     else
     {
         MessageBox.Show("Please Select any Type First or Click Search All", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }