Dev Express ButtonEdit 버튼 숨기기


How to disable or read only or hide ButtonEdit button in Dev Express



form 디자인 작업시

...으로 보이는 ButtonEdit버튼을 지워야 하는 경우가 있음.


When you design form, 

Sometimes you need disable or hiding ... button in column.


buttonEdit1.Properties.Button[0].Visible = false;


[C#] DateEdit Control 특정 날짜만 선택가능


DateEdit control 생성


-- 특정 날짜 이외에 disabled

private void dateEdit1_DrawItem(object sender, DevExpress.XtraEditors.Calendar.CustomDrawDayNumberCellEventArgs e) {

        

//매주 월요일만 가능 || 오늘 이전 회색

if(e.Date.DayOfWeek != DayOfWeek.Monday) || (e.Date < Date.Now.Date)) {

           e.Style.ForeColor = Color.Gray;

}

}

private void dateEdit1_EditValueChanging(object sender,DevExpress.XtraEditors.Controls.ChangingEventArgs e) {

       if(Convert.ToDateTime(e.NewValue,System.Globalization.CultureInfo.InvariantCulture).DayOfWeek != DayOfWeek.Monday) || 

   (Convert.ToDateTime(e.NewValue,System.Globalization.CultureInfo.InvariantCulture) < Date.Now.Date)) {

          e.Cancel = true;

}

}




Dev Express Error (14.2버전에선 해결 방법 없음)


form 디자인 작업시

복사, 붙여넣기 되지않을 때가 있음.


버전 14.2의 경우

복사할려는 폼에 layout control이 있을경우 

붙여넣기 되지않는 현상 발생, 

해당버전에선 해결되지 않은것으로 보임.....

상위 버전에서 해결 되었다고 함.



When you design form, 

Sometimes cannot copy and paste form to form.


It is layout control form error.

Even if you try to copy other control, you cannot paste it, if form has any layout control.


ex) you need copy A form to B form.

If A form has layout control, cannot copy B form (version DX 14.2)


It was solved in upper version.




+ Recent posts