! 제품 버전을 정확하게 입력해 주세요.
제품 버전이 정확하게 기재되어 있지 않은 경우,
최신 버전을 기준으로 안내 드리므로
더욱 빠르고 명확한 안내를 위해
제품 버전을 정확하게 입력해 주세요!

ComboBoxCellType > Q&A | 토론

본문 바로가기

WinForms윈폼 ComboBoxCellType

페이지 정보

작성자 정재원 작성일 2021-07-09 19:32 조회 2,415회 댓글 0건
제품 버전 : spread net 11 for winform
컨트롤 이름 : spread

본문

            FarPoint.Win.Spread.CellType.ComboBoxCellType comboBoxCellType1 = new FarPoint.Win.Spread.CellType.ComboBoxCellType();

            comboBoxCellType1.AllowEditorVerticalAlign = true;

            comboBoxCellType1.ButtonAlign = FarPoint.Win.ButtonAlign.Right;            

            comboBoxCellType1.Clear();


            string[] sItems = new string[4];


            for (int i = 0; i < 4; i++)

            {

                sItems[i] = i.ToString();

            }

            comboBoxCellType1.Items = sItems;

            comboBoxCellType1.AutoSearch = FarPoint.Win.AutoSearch.None;

            comboBoxCellType1.ButtonAlign = FarPoint.Win.ButtonAlign.Right;

            comboBoxCellType1.ListAlignment = FarPoint.Win.ListAlignment.Left;            

            comboBoxCellType1.Editable = false;


 fpWp82.ActiveSheet.Cells[6, 3].CellType = comboBoxCellType1;



위와같이 보여주는 값이 숫자로 0,1,2,3, 콤보박스로 보여지는데 2번이 기본적으로 보여지게 할려면 어떻게 해야 할까요?

셀에 콤보박스의 상하단 또는 좌우 텍스트 정렬 옵션은 없는건가요?

단순 보여지는 용도로만 사용할려고 합니다.

그래서 itemsdata 는 사용하지 않았습니다. 


  • 페이스북으로 공유
  • 트위터로  공유
  • 링크 복사
  • 카카오톡으로 보내기

댓글목록

등록된 댓글이 없습니다.

1 답변

WinForms윈폼 Re: ComboBoxCellType

추천0 이 글을 추천하셨습니다 비추천0 채택채택

페이지 정보

작성자 GCK루카스 작성일 2021-07-13 11:38 댓글 0건

본문

안녕하세요 그레이프시티입니다.


값이 보여지게 하거나 텍스트 정렬은 콤보박스 설정 후 해당 셀에 별도로 지정해 주시면 됩니다.

사용하신 코드 아래에 하기 코드를 사용해 주시기 바랍니다.

fpSpread1.ActiveSheet.Cells[6, 3].CellType = comboBoxCellType1;
fpSpread1.ActiveSheet.Cells[6, 3].Value = 2;
fpSpread1.ActiveSheet.Cells[6, 3].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
fpSpread1.ActiveSheet.Cells[6, 3].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;


다른 궁금한 점이 생기면, 언제든 문의 주시기 바랍니다.


감사합니다.

그레이프시티 드림

* 그레이프시티(GrapeCity)는 개발자를 위하여 ComponentOne(컴포넌트원), Spread(스프레드), ActiveReports(액티브리포츠), SpreadJS(스프레드JS), Wijmo(위즈모)와 같은 엑셀 스프레드시트 리포팅 그리드와 차트 등 다양한 종류의 .NET JavaScript(자바스크립트) 컴포넌트 툴을 생산하고있는 개발툴 전문 회사 입니다.

댓글목록

등록된 댓글이 없습니다.

메시어스 홈페이지를 통해 제품에 대해서 더 자세히 알아 보세요!
홈페이지 바로가기
메시어스 홈페이지를 통해 제품에 대해서 더 자세히 알아 보세요!
홈페이지 바로가기
이메일 : sales-kor@mescius.com | 전화 : 1670-0583 | 경기도 과천시 과천대로 7길 33, 디테크타워 B동 1107호 메시어스(주) 대표자 : 허경명 | 사업자등록번호 : 123-84-00981 | 통신판매업신고번호 : 2013-경기안양-00331 ⓒ 2024 MESCIUS inc. All rights reserved.