public static PenjaminanDataset.m_perusahaanRow selectPerusahaanByID(int id) { PenjaminanDatasetTableAdapters.m_perusahaanTableAdapter ta = new PenjaminanDatasetTableAdapters.m_perusahaanTableAdapter(); PenjaminanDataset.m_perusahaanDataTable dt = new PenjaminanDataset.m_perusahaanDataTable(); PenjaminanDataset.m_perusahaanRow dr = null; try { ta.FillPerusahaanByID(dt, id); if (dt.Count > 0) { dr = dt[0]; } return(dr); } catch (Exception ex) { throw new ApplicationException("Failed to load perusahaan data : " + ex.Message); } }
private void bindData() { PenjaminanDataset.m_perusahaanRow dr = m_perusahaan.selectPerusahaanByID(eID); txtName.Value = dr.name.ToString(); txtDescription.Value = dr.description.ToString(); }