Exemplo n.º 1
0
        private void rnursebutton_Click(object sender, EventArgs e)
        {
            nursedataGridView.DataSource = null;
            nursedataGridView.Rows.Clear();
            List <Nurse> nlist = da.nursedatagrid();

            foreach (var item in nlist)
            {
                nursedataGridView.Rows.Add(item.Name, item.Contactno, item.Designation);
            }
            nursesearchcomboBox.Items.Clear();
            nursesearchcomboBox.Items.Add("Name");
            nursesearchcomboBox.Items.Add("Designation");
            nursesearchcomboBox.Text = "";
            nursesearchtextBox.Text  = "";
            rtabControl.SelectedTab  = rnursetab;
        }