Home > DeveloperSection > Forums > Set the text of RepositoryItemButtonEdit in layout view in grid
Goti Bandu

Total Post:119

Posted on    November-19-2014 10:43 PM

 ASP.Net Devexpress  Devexpress Windows UI  Devexpress MVC 

 1 Reply(s)
 2872  View(s)
Rate this:
I create a Grid Control and set Main View as Layout View and add Repository Items is different Columns But When i add Button Edit in Target Column. I want to bind the columns data with the Text property of Button. Please am too worried about it. tell me any Solution about that How to set the Text of RepositoryItemButtonEdit in layout View in Grid

Jeet Verma
Jeet Verma

Total Post:110

Posted on    November-20-2014 2:31 AM

You can handle the event that happens when an editor is about to be shown in a non-focused mode CustomRowCellEdit.


void gridView_CustomRowCellEdit(object sender, CustomRowCellEditEventArgs e)


    if (e.Column != columnWithButtonEdits) {

        BusinessObject obj = (BusinessObject) gridView.GetRow(e.RowHandle);

        e.RepositoryItem.Buttons[0].Text = obj.SomeProperty;               



Of course you have to cast RepositoryItem to your type and get the button that you need.

Don't want to miss updates? Please click the below button!

Follow MindStick