private void ComboBind()
        {
            cmb_parttype.AutoCompleteSource = AutoCompleteSource.ListItems;
            cmb_parttype.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
            DataSet TypeDS = PartType.PartTypeDs();

            cmb_parttype.DataSource    = TypeDS.Tables[0].DefaultView;
            cmb_parttype.DisplayMember = "TYPE_DESC";
            cmb_parttype.ValueMember   = "TYPEID";
        }
Ejemplo n.º 2
0
        private void ComboBind()
        {
            cmb_type.AutoCompleteSource = AutoCompleteSource.ListItems;
            cmb_type.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
            DataSet TypeDS = PartType.PartTypeDs();
            DataRow dr     = TypeDS.Tables[0].NewRow();

            dr[0] = 0;
            TypeDS.Tables[0].Rows.InsertAt(dr, 0);
            cmb_type.DataSource = TypeDS.Tables[0].DefaultView;

            cmb_type.DisplayMember = "TYPE_DESC";
            cmb_type.ValueMember   = "TYPEID";
        }