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

Top