Change the Text of ButtonColumn in a DataGrid

G

Guest

Hi there,

I would like to change the text of the ButtonColumn after datagrid binding,
depending on the value of a certain field. (eg. Text="Details" for case 1,
Text="others' for case 2)

Is it possible to do so?

<asp:datagrid id="dgList" runat="server" Width="890" BorderStyle="None"
GridLines="Both" BorderWidth="1px" ...
<asp:ButtonColumn Text="Details" CommandName="Select"
ItemStyle-VerticalAlign="Top" ItemStyle-Width="40"></asp:ButtonColumn>




Thanks.
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top