private void dgvStoreGroup_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     int sgNumber = -1;
     foreach (DataGridViewRow row in dgvStoreGroup.SelectedRows)
     {
         sgNumber = (int)row.Cells["StoreGroupNumber"].Value;
         break;
     }
     if (sgNumber != -1)
     {
         FrmIconHQ frmIcon = new FrmIconHQ(sgNumber, dtpEffectiveDate.Value.Date);
         frmIcon.ShowDialog();
     }
 }
Пример #2
0
        private void dgvStoreGroup_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            int sgNumber = -1;

            foreach (DataGridViewRow row in dgvStoreGroup.SelectedRows)
            {
                sgNumber = (int)row.Cells["StoreGroupNumber"].Value;
                break;
            }
            if (sgNumber != -1)
            {
                FrmIconHQ frmIcon = new FrmIconHQ(sgNumber, dtpEffectiveDate.Value.Date);
                frmIcon.ShowDialog();
            }
        }