1

How can I add a button to the devexpress datagrid view.On clicking the button I need to show another page on the selcted row.

I tried creating an unbound column and I am not able to chose the column type for button and find specific event for the button click

2
  • supportcenter.devexpress.com/ticket/details/t265620/… Commented Feb 15, 2023 at 2:17
  • Have tried that solution but it helps to add an image column with an unbound column.it won't help to add a button or listen to the click event on the particular column Commented Feb 15, 2023 at 21:52

1 Answer 1

0

You can use the TemplateColumn.DipslayTemplate property to add a button to a column:

<dxg:TemplateColumn IsReadOnly="true" AllowSort="False" MinWidth="60">
    <dxg:TemplateColumn.DisplayTemplate>
         <DataTemplate>
              <Button/>
         </DataTemplate>
    </dxg:TemplateColumn.DisplayTemplate>
</dxg:TemplateColumn>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.