M
Matt
hi,
I have a datagrid with an EditCommandColumn in it, but only one of the
buttons (Edit) is displayed. Does anyone know why this would be? It
seems like it would be a simple problem but I haven't seen any similar
postings. Pushing the button works, but the update button remains
missing. Link buttons produce similar behavior.
Here's the code:
<asp:datagrid id="discDataGrid" runat="server" Width="1000px"
Font-Names="Arial" OnEditCommand="rejectFile" DataKeyField="filename"
OnUpdateCommand="acceptFile" PageSize="5" AllowPaging="True"
OnPageIndexChanged="discDataGrid_Paging"
OnSortCommand="discDataGrid_Sorting" CellPadding="3"
HeaderStyle-BackColor="#cfcfcf"
AlternatingItemStyle-BackColor="#dddddd" BorderColor="Black"
AllowSorting="True" Font-size="8pt" AutoGenerateColumns="False">
<Columns>
(other columns)
<asp:EditCommandColumn ButtonType=PushButton EditText="Reject"
UpdateText="Accept"></asp:EditCommandColumn>
</Columns>
</asp:datagrid>
Thanks in advance,
matt
I have a datagrid with an EditCommandColumn in it, but only one of the
buttons (Edit) is displayed. Does anyone know why this would be? It
seems like it would be a simple problem but I haven't seen any similar
postings. Pushing the button works, but the update button remains
missing. Link buttons produce similar behavior.
Here's the code:
<asp:datagrid id="discDataGrid" runat="server" Width="1000px"
Font-Names="Arial" OnEditCommand="rejectFile" DataKeyField="filename"
OnUpdateCommand="acceptFile" PageSize="5" AllowPaging="True"
OnPageIndexChanged="discDataGrid_Paging"
OnSortCommand="discDataGrid_Sorting" CellPadding="3"
HeaderStyle-BackColor="#cfcfcf"
AlternatingItemStyle-BackColor="#dddddd" BorderColor="Black"
AllowSorting="True" Font-size="8pt" AutoGenerateColumns="False">
<Columns>
(other columns)
<asp:EditCommandColumn ButtonType=PushButton EditText="Reject"
UpdateText="Accept"></asp:EditCommandColumn>
</Columns>
</asp:datagrid>
Thanks in advance,
matt