private void btnView_Click(object sender, EventArgs e) { DataTable dt = phrmist.GetPharmist(); dataGridView1.DataSource = dt; dataGridView1.AllowUserToAddRows = true; }
private void ViewPharmist_Load(object sender, EventArgs e) { DataTable dt = obj.GetPharmist(); dataGridView1.DataSource = dt; }