Beispiel #1
0
        private void cboFlatType_EditValueChanged(object sender, EventArgs e)
        {
            DataTable dtCheckList = new DataTable();

            i_FlatTypeId = Convert.ToInt32(cboFlatType.EditValue);
            grdFlatCheckListView.Columns.Clear();
            if (i_FlatTypeId != 0)
            {
                cboCheckList.Enabled = true;
                dtCheckList          = ApplyOthersDL.GetCheckList(i_FlatTypeId);
                cboCheckList.Properties.DataSource = dtCheckList;
                cboCheckList.Properties.ForceInitialize();
                cboCheckList.Properties.PopulateColumns();
                cboCheckList.Properties.DisplayMember = "CheckListName";
                cboCheckList.Properties.ValueMember   = "CheckListId";
                cboCheckList.Properties.ShowHeader    = false;
                cboCheckList.Properties.ShowFooter    = false;
                cboCheckList.Properties.Columns["CheckListId"].Visible = false;
            }
        }
Beispiel #2
0
 public static DataTable GetCheckList(int argFlatTypeId)
 {
     return(ApplyOthersDL.GetCheckList(argFlatTypeId));
 }