DevExpress ButtonEdit

 

添加按钮 buttons 

按钮选择图片不显示需 kind =>Glyph

通过ButtonClick事件然后通过Caption判断按下哪个按钮

  private void buttonEdit1_Properties_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            EditorButton btn = e.Button;
            if (btn.Caption == "添加")
            {
                XtraMessageBox.Show("添加");
            }
            else if (btn.Caption == "修改")
            {
                XtraMessageBox.Show("修改");
            }
            else if (btn.Caption == "删除")
            {
                XtraMessageBox.Show("删除");
            }
        }

 

posted @ 2023-06-29 16:47  RC城  阅读(134)  评论(0编辑  收藏  举报