Link to home
Create AccountLog in
Avatar of chandanan
chandanan

asked on

data grid font changed when select event fires

Hi,

I have a data grid and this becomes big when I click on it.
I so frustated on this. Can someone help me?
Here is my grid!
----------------------------------------------------


<asp:datagrid id="dgDList" runat="server" Width="98%"
AllowPaging="True" AllowSorting="True" CellPadding="4" GridLines="None" ForeColor="#333333"
AutoGenerateColumns="False" PagerStyle-Mode="NumericPages"
PagerStyle-PageButtonCount="10">
<FooterStyle BackColor="#C0D0EF" Font-Bold="True" ForeColor="White"></FooterStyle>
<EditItemStyle BackColor="#2461BF" />
<SelectedItemStyle BackColor="LightCyan"></SelectedItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="White"
BackColor="#A3BAE7"></HeaderStyle>
<AlternatingItemStyle BackColor="White" />
<ItemStyle BackColor="#EFF3FB" />
<Columns>
<asp:TemplateColumn ItemStyle-Width="1%">
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
<HeaderTemplate>
      <input ID="chkAll" type="checkbox" onclick="CheckAllDataGridCheckBoxes('chkSelect',this.checked)">
</HeaderTemplate>
<ItemTemplate>
      <asp:CheckBox id="chkSelect" runat="server" AutoPostBack="false"></asp:CheckBox>
</ItemTemplate>

<ItemStyle Width="1%"></ItemStyle>
</asp:TemplateColumn>
<asp:BoundColumn Visible="False" DataField="PACKAGE_ID"></asp:BoundColumn>
<asp:BoundColumn DataField="JOB_TITLE" SortExpression="JOB_TITLE" HeaderText="Name">
<HeaderStyle HorizontalAlign="center"></HeaderStyle>
<ItemStyle HorizontalAlign="left" Width="24%"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="TAPID" SortExpression="TAPID" HeaderText="UA User">
<HeaderStyle HorizontalAlign="center"></HeaderStyle>
<ItemStyle Width="10%" HorizontalAlign="Left"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="TAP_PACKET_ID" SortExpression="TAP_PACKET_ID" HeaderText="Submit ID" ItemStyle-Width="8%" ItemStyle-HorizontalAlign="right" HeaderStyle-HorizontalAlign="center">
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>

<ItemStyle HorizontalAlign="Right" Width="8%"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="SUBMITTED_DATE" SortExpression="SUBMITTED_DATE" HeaderText="Submit Date" ItemStyle-Width="10%"
DataFormatString="{0:d}">
<HeaderStyle HorizontalAlign="Right"></HeaderStyle>
<ItemStyle HorizontalAlign="Right"></ItemStyle>
</asp:BoundColumn>
<asp:TemplateColumn>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" Width="1%"></ItemStyle>
<HeaderTemplate>
      &nbsp;
</HeaderTemplate>
<ItemTemplate>
      <asp:Image id="imgUnopened" runat="server" ToolTip="New Item" ImageUrl='<%#Images.Common.Button["ItemUnopened.gif"].Location %>' Visible='<%# (((System.Data.DataRowView)Container.DataItem)["ACCESSED_DATE"]).ToString()=="" %>'>
      </asp:Image>
      <asp:Image id="imgOpened" runat="server" ToolTip="Item has been viewed or downloaded" ImageUrl='<%#Images.Common.Button["ItemOpened.gif"].Location %>' Visible='<%# (((System.Data.DataRowView)Container.DataItem)["ACCESSED_DATE"]).ToString()!="" %>'>
      </asp:Image>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn ItemStyle-Width="12%" ItemStyle-HorizontalAlign="center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="center" HeaderText="Applicant-Provided">
<ItemTemplate>
    <asp:LinkButton ID="ViewAppXML" Text="XML" runat="server" CommandName="SelectXML"></asp:LinkButton>
    <asp:LinkButton ID="ViewAppPDF" Text="PDF" runat="server" CommandName="SelectPDF"></asp:LinkButton>
</ItemTemplate>

<HeaderStyle HorizontalAlign="Center"></HeaderStyle>

<ItemStyle HorizontalAlign="Center" Wrap="True" Width="12%"></ItemStyle>
</asp:TemplateColumn>
<asp:TemplateColumn ItemStyle-Width="8%" ItemStyle-HorizontalAlign="center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="center" HeaderText="Board Action">
<ItemTemplate>
    <asp:LinkButton ID="BAReport" Text="PDF" runat="server" CommandName="BoardAction"></asp:LinkButton>
</ItemTemplate>

<HeaderStyle HorizontalAlign="Center"></HeaderStyle>

<ItemStyle HorizontalAlign="Center" Wrap="True" Width="8%"></ItemStyle>
</asp:TemplateColumn>
<asp:TemplateColumn ItemStyle-Width="10%" ItemStyle-HorizontalAlign="center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="center" HeaderText="Licensure History">
<ItemTemplate>
    <asp:LinkButton ID="LicHist" Text="PDF" runat="server" CommandName="LicensureHistory"></asp:LinkButton>
</ItemTemplate>

<HeaderStyle HorizontalAlign="Center"></HeaderStyle>

<ItemStyle HorizontalAlign="Center" Wrap="True" Width="10%"></ItemStyle>
</asp:TemplateColumn>

<asp:TemplateColumn ItemStyle-Width="10%" ItemStyle-HorizontalAlign="center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="center" HeaderText="FCVS Packet">
<ItemTemplate>
    <asp:LinkButton ID="FCVSPacket" Text="PDF" runat="server" CommandName="FCVSPacket"></asp:LinkButton>
</ItemTemplate>

<HeaderStyle HorizontalAlign="Center"></HeaderStyle>

<ItemStyle HorizontalAlign="Center" Wrap="True" Width="10%"></ItemStyle>
</asp:TemplateColumn>

<asp:BoundColumn Visible="False" DataField="ACCESSED_DATE"></asp:BoundColumn>
</Columns>
<PagerStyle NextPageText="Next &amp;gt;" PrevPageText="&amp;lt; Prev" HorizontalAlign="Center"
ForeColor="White" BackColor="#B4CCF1"></PagerStyle>
</asp:datagrid>
ASKER CERTIFIED SOLUTION
Avatar of raja_ind82
raja_ind82
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of chandanan
chandanan

ASKER

Thanks!! I helped.
Avatar of Kumaraswamy R
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.