Пример #1
0
        private void btnView_Click(object sender, EventArgs e)
        {
            DataTable dt = phrmist.GetPharmist();

            dataGridView1.DataSource         = dt;
            dataGridView1.AllowUserToAddRows = true;
        }
Пример #2
0
        private void ViewPharmist_Load(object sender, EventArgs e)
        {
            DataTable dt = obj.GetPharmist();

            dataGridView1.DataSource = dt;
        }