Hi,
I have constructed a basic datagrid with an EditCommandColumn. The a user clicks the 'edit' link to edit a specific row, textboxes fill the row for editing as expected, but the font and font-size of the input textboxes is different to that in the grid originally, so the grid changes size. How can I specify a style for the input text boxes that appear when using EditCommandColumn?
The code for the grid is currently:
Thanks
I have constructed a basic datagrid with an EditCommandColumn. The a user clicks the 'edit' link to edit a specific row, textboxes fill the row for editing as expected, but the font and font-size of the input textboxes is different to that in the grid originally, so the grid changes size. How can I specify a style for the input text boxes that appear when using EditCommandColumn?
The code for the grid is currently:
Code:
<ASP:DataGrid id="InvoiceList"
runat="server"
BorderColor="Black"
BackColor="#EEEEEE"
CellPadding="3"
Width="549px"
HeaderStyle-BackColor="#ffffff"
Font-Size="8pt" Font-Name="Verdana"
OnEditCommand="InvoiceList_EditCommand"
OnCancelCommand="InvoiceList_CancelCommand"
OnUpdateCommand="InvoiceList_UpdateCommand"
AutoGenerateColumns="False">
<HeaderStyle height="20px" backcolor="White"></HeaderStyle>
<Columns>
<asp:BoundColumn DataField="DateCreated" HeaderText="Date" ReadOnly="true"></asp:BoundColumn>
<asp:BoundColumn DataField="InvoiceID" HeaderText="Invoice ID"></asp:BoundColumn>
<asp:BoundColumn DataField="CompanyName" HeaderText="Company"></asp:BoundColumn>
<asp:BoundColumn HeaderText="Paid"/>
<asp:BoundColumn DataField="Amount" HeaderText="Amount" DataFormatString="{0:c}"></asp:BoundColumn>
<asp:BoundColumn DataField="AmountVAT" HeaderText="Amount + VAT" DataFormatString="{0:c}" ReadOnly="true"></asp:BoundColumn>
<asp:EditCommandColumn EditText="Edit" UpdateText="Update" CancelText="Cancel"/>
</Columns>
</ASP:DataGrid>
Thanks