spspli
spspli

Reputation: 3338

Where is the button click event in Devexpress repositoryItemButtonEdit control?

I have a devexpress grid, one of the columns is a repositoryItemButtonEdit control. I want the following functionality: if user click the button, another form will pop up. But I cannot find the button click event for this repositoryitemButtonEdit

Upvotes: 1

Views: 9564

Answers (3)

Rene
Rene

Reputation: 302

You need to put griView.OptionsBehavior.Editable= false;

if this is true Click event doesn't fire

Upvotes: 0

Jitesh
Jitesh

Reputation: 1

create your own Button click event Write following line.

repositoryItemButtonEdit1.ButtonClick =+ repositoryItemButtonEdit1_ButtonClick;

and then Create following event function.

private void repositoryItemButtonEdit1_ButtonClick(object sender,DevExpress.XtraEditors.Controls.ButtonClickEventArgs e)
 {
         //Your Code;   

 }

Upvotes: 0

DevExpress Team
DevExpress Team

Reputation: 11376

The RepositoryItemButtonEdit provides the ButtonClick event. Please take a look at the screenshot attached.enter image description here

Upvotes: 4

Related Questions