private void InitalData() { DType type = new DType(); DataTable dt = type.GetAllType(); cbxType.DataSource = dt; cbxType.ValueMember = "TypeId"; cbxType.DisplayMember = "Type"; }