private void RecordTSB_Click(object sender, EventArgs e) { DataSet data = new mtermofpaymentCRUD().getData(txtTermOfPayment.Text, txtTermType.Text, Convert.ToInt32(txtDays.Text)); DtGrid.DataSource = data; DtGrid.DataMember = "tblmtermofpayment"; }
private void Binding() { DataSet data = new mtermofpaymentCRUD().getData(); DtGrid.DataSource = data; DtGrid.DataMember = "tblmtermofpayment"; }