- Run the Grid Designer tool for the data grid.
- Make sure the selected view is the one that should have a button in a column.
- Switch to the Columns page.
- Click on the column you want to change into a button.
- Click the drop-down option for the ColumnEdit property and choose New > ButtonEdit.
- Drill down under the ColumnEdit property family under Buttons > 0 - Ellipsis.
- Find the Image property and click the [...] button that appears when you give focus to the property.
- Switch to the DX Image Gallery tab and find an icon suitable for the context. This is what the button will look like. Click the icon and then click OK.
- Find the Kind property, which is set to Ellipsis by default, and change it to Glyph.
- Scroll down to the bottom of the ColumnEdit family of properties and find the TextEditStyle and change it to DisableTextEditor.
- Scroll down further in the main property list of the column. Find ShowButtonMode, and change it to ShowAlways.
P.S. The column with the button must be editable (AllowEdit = True) in order for the user to be able to click on the button and trigger the repository item's "Click" event. In a recent project I had turned the grid's master Editable property to False and was using the MouseDown event of the grid control instead of the Click event of the repository item. But this caused the user to have to click twice on a tab control to move from one tab to the other whenever they had previously clicked on a button. So avoid MouseDown and use the Click event, making sure both the grid control as a whole and the individual column are both set to be editable.
Here's another one that will clearly reduce the risk assumed by the clients. Good attempt. webflow development services in dubai
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteYou've figured it out correctly. Your creative potential seems immeasurable. Optimum effort! Cisco Distributor Saudi Arabia
ReplyDelete