private void gvGRNList_CellClick(object sender, DataGridViewCellEventArgs e) { try { if (e.RowIndex > 0) { objGRN = new GRN(); bindItemList.DataSource = null; objGRN = objGRN_DL.Get(Convert.ToInt64(gvGRNList.Rows[e.RowIndex].Cells["ColGRNNO"].Value)); if (objGRN != null) { bindItemList.DataSource = objGRN_DL.GetDataView_Items(objGRN.GRNNo); } } } catch (Exception ex) { MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void Add(GRN objGRN) { this.InnerList.Add(objGRN); }