DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repbeiTemp1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit();
DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repbeiTemp2 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit();
gridView.CustomRowCellEdit += (s, e) =>
{
if (e.Column.FieldName == "col1")
{
if (e.CellValue == null)
{
e.RepositoryItem = null;
}
else
{
e.RepositoryItem = repbeiTemp1;
}
}
else if (e.Column.FieldName == "col2")
{
if (e.CellValue == null)
{
e.RepositoryItem = null;
}
else
{
e.RepositoryItem = repbeiTemp2;
}
}
}
참조
: https://docs.devexpress.com/WindowsForms/DevExpress.XtraGrid.Views.Grid.GridView.CustomRowCellEdit
'Language > SDK,Component' 카테고리의 다른 글
[Devexpress/WinForm/C#] XtraGrid (GridView) Record 단위 Checkbox (CheckBoxRowSelect) 설정 (0) | 2021.09.03 |
---|---|
[Devexpress/C#] XtraGrid 현재 선택된 Grid 쉘 컨트롤 (0) | 2012.12.12 |
Microsoft Exchange Web Service Managed API SDK 1.2.1 (0) | 2012.06.25 |
DevExpress dotNet Free Component (0) | 2011.09.27 |