Topic: Add Button to TableGrid

Can a button be added to a tablegrid cell to do something special when clicked on?

I would be interested in changing the color of the button based on other data in that row also if possible.

Thanks

Re: Add Button to TableGrid

asawyer13,
Just saw your post and since nobody responded, I'll give you a possible solution. First, you cannot place buttons as defined in MVD inside tablegrids. However, you can place graphic images in the tablegrid rows. You can conditionally swap out images based on the content of a row. You will need to utilize your skills in a graphics program to create the various buttons you want to use.


Take a look at the attached project and see if it meets your needs. Just a forewarning, I did not spend any time creating high resolution button images so the buttons are not the greatest looking buttons. In my project I have a black button and a red button. The red button is displayed if Col2 is empty. The black button is displayed if Col2 is not empty. But you can change the condition to suit your needs.


Hope this helps.

Post's attachments

Attachment icon Tablegrid Buttons.zip 338.93 kb, 348 downloads since 2019-12-12