Datagrid with ButtonColumn as Last Column

B

Bhaumik

Hi,
I am generating datagrid columns dynamically from DataTable and want
to add buttoncolumn as Last Column with image and event Handler.
Based on ItemCommand event I want to perform some action.
How I Would be able to do that.
Thanks in advance.
Regards,
Bhaumik
 
R

Ravi Gudlavalleti

1)
One way I know is to set "AutoGenerateColumns" to False and add the columns
manually in the datagrid.

2)
But if you still want to auto generate, one way I can think of is adding a
column in your database table that has the HTML code to display a button.
I am not sure if you can use a OnItemCommand in this case, but you can try

3)
You can do the same thing programmatically but in your DataTable. Add an
extra column to the table.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top