private void LstTransactionsMouseDoubleClick(object sender, MouseEventArgs e) { string yr = lstRefNo.SelectedItems[0].Tag.ToString(); if (yr != "") { YearEnd yEnd = new YearEnd(); DataTable dtRec = yEnd.GetDocumentByYear(Convert.ToInt32(lkActivity.EditValue), yr); lblAdjDate.Text = yr; PopulateTransactions(dtRec); } }
private void gridView2_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) { DataRow dr = gridView2.GetFocusedDataRow(); if (dr == null) { return; } int year = Convert.ToInt32(dr["Year"]); YearEnd yEnd = new YearEnd(); gridInventory.DataSource = yEnd.GetDocumentByYear(Convert.ToInt32(cboStores.SelectedValue), year); }