![]() |
|
|
|||||||
![]() |
ASP Net - Change the Text of ButtonColumn in a DataGrid |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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. =?Utf-8?B?QmVu?= |
|
|
|
|
#2 |
|
Posts: n/a
|
Create a DataBound event and make your changes there.
-- Christopher A. Reed "The oxen are slow, but the earth is patient." "Ben" <> wrote in message news:40A98E86-BFC1-4459-B08B-... > 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. > Christopher Reed |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How To Display And Edit Multiline In Datagrid Controls With Databinding.. | har29oct | General Help Related Topics | 0 | 03-28-2009 02:41 PM |
| Loading 24,000 rows into C# .net Datagrid | Kagu | Software | 0 | 03-10-2009 06:51 PM |
| validating textbox inside datagrid | susan_1516 | Software | 0 | 11-09-2008 01:29 PM |
| Why We Resist Change @ The TechZone | Silverstrand | Front Page News | 0 | 09-07-2006 12:01 PM |
| SONY DVD RW DW-G120A SOMETIMES FAILS...... | atlantic965 | DVD Video | 0 | 06-18-2006 10:36 PM |