Пример #1
0
        private void Load_SecondaryActivityList()
        {
            try
            {
                DataTable dt = objBatchActivity_DL.GetView_Packing_Secondary_Admin((int)BatchActivity.Status.SecondaryPacking, (int)BatchActivity.Status.SecondaryPacking_Start, (int)BatchActivity.Status.SecondaryPacking_Finish);

                dgvActivity.AutoGenerateColumns           = false;
                objSourceSecondaryActivityList.DataSource = dt;
                dgvActivity.DataSource = objSourceSecondaryActivityList;
                objSourceSecondaryActivityList.ResetBindings(true);


                // SetColors();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString());
            }
        }