WinForms윈폼 Cell type이 Date일 때 클릭했을 때만 화살표가 나올 수 있는 방법
추천0 비추천 0
페이지 정보
작성자 김혜주 작성일 2023-07-20 18:20 조회 229회 댓글 0건제품 버전 : v8.35.20151
컨트롤 이름 : SheetView
본문
관련링크
댓글목록
등록된 댓글이 없습니다.
등록된 댓글이 없습니다.
김혜주 님, 안녕하세요.
그레이프시티입니다.
셀이 편집모드가 아닌 경우에는 SpinButton을 그리지 않도록, DateTimeCellType을 상속하는 셀 타입을 정의하여 사용하실 수 있습니다.
아래 샘플 코드를 참고하여주시기 바랍니다.
public class DateTimeCellType2 : FarPoint.Win.Spread.CellType.DateTimeCellType { public override void PaintCell(Graphics g, Rectangle r, FarPoint.Win.Spread.Appearance appearance, object value, bool isSelected, bool isLocked, float zoomFactor) { bool spinButton = SpinButton; SpinButton = false; base.PaintCell(g, r, appearance, value, isSelected, isLocked, zoomFactor); SpinButton = spinButton; } }
감사합니다.
그레이프시티 드림
등록된 댓글이 없습니다.