<asp:GridView ID="gvBookingDetails" runat="server" BackColor="White"
BorderColor="#DEDFDE"
BorderStyle="None" BorderWidth="1px"
CaptionAlign="Top" CellPadding="4" ForeColor="Black"
GridLines="Vertical" Height="6px" Width="100%"
OnRowCreated="gvBookingDetails_RowCreated"
Font-Size="Small"
OnRowDataBound="gvBookingDetails_RowDataBound"
AutoGenerateColumns="False"
Font-Names="Tahoma"
OnDataBinding="gvBookingDetails_DataBinding" TabIndex="8"
EmptyDataText="There are no records.!!"
EmptyDataRowStyle-CssClass="EmptyData">
<FooterStyle BackColor="#CCCC99" />
<RowStyle BackColor="#BADAF6" Wrap="False" />
<Columns>
<asp:TemplateField HeaderText="Select">
<ItemTemplate>
<asp:Literal
ID="RadioButtonMarkup" runat="server">
</asp:Literal>
</ItemTemplate>
<ItemStyle Width="30px"
HorizontalAlign="Left" />
</asp:TemplateField>
<asp:BoundField DataField="BookingDate"
HeaderText="Booking Date">
<ItemStyle Wrap="False" Width="80px"
HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="FromTime"
HeaderText="From">
<ItemStyle Wrap="False" Width="80px"
HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="ToTime"
HeaderText="To">
<ItemStyle Wrap="False" Width="80px"
HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="LocationName"
HeaderText="Location" SortExpression="LocationName">
<ItemStyle Font-Names="Tahoma" Font-
Size="Small" HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="Room"
HeaderText="Room">
<ItemStyle Wrap="True" Width="130px"
VerticalAlign="Middle" HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="HostedBy"
HeaderText="Host">
<ItemStyle Wrap="True" Width="130px"
HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="Subject"
HeaderText="Subject">
<ItemStyle Wrap="True" Width="130px"
HorizontalAlign="Left" VerticalAlign="Middle" />
</asp:BoundField>
<asp:BoundField DataField="Remarks"
HeaderText="Remark">
<ItemStyle Wrap="True" Width="150px"
HorizontalAlign="Left" VerticalAlign="Middle" />
</asp:BoundField>
<asp:BoundField DataField="Requestedby"
HeaderText="Requested by">
<ItemStyle Wrap="True" Width="150px"
VerticalAlign="Middle" HorizontalAlign="Left" />
</asp:BoundField>
</Columns>
<PagerStyle BackColor="#F7F7DE"
ForeColor="Black" HorizontalAlign="Right" Wrap="True" />
<SelectedRowStyle BackColor="#CE5D5A" Font-
Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#337FC2" Font-
Bold="True" ForeColor="White" CssClass="Freez" />
<AlternatingRowStyle BackColor="White"
Wrap="False" />
<EditRowStyle Wrap="True" />
<EmptyDataRowStyle Width="1px"
CssClass="EmptyData" />
</asp:GridView>
On Jun 25, 5:04 pm, MANISH LANGA <[email protected]> wrote:
> send some html or code so i wil help u (like how to apply .Freez css class)
>
>
>
>
>
> On Thu, Jun 24, 2010 at 12:10 PM, Yogesh Dige <[email protected]> wrote:
> > i am using the css for fixing the grid header text while scrolling it
> > is working fine also , but if my window get open in the restore mode
> > and if i maximize the window size then the position of the grid
> > headers is getting disturbed those was coming out of the grid if i
> > press F5(refresh) then next time the gridheaders was gettng fix
> > properlly it is showing proper but for that i need the user
> > ineteraction for refreshing the page can any body tell me the
> > reason . i found that in CSS the positon is Relative but if i remove
> > it then grid header is not gettingfix while scrolling.
> > here is the CSS which i used to fix grid headers...in all pages
>
> > .Freez
> > {
> > font-size: 12px;
> > font-family :Tahoma;
> > font-weight: bold;
> > text-align: Left;
> > color: white;
> > border-right: 0px solid silver;
> > position:relative;
> > cursor: default;
> > z-index: 10;
>
> > can any body help me out ??
>
> > thaks in advance !!
>
> --
> --~--~---------~--~----~
> MANISH LANGA
> --~--~---------~--~----~- Hide quoted text -
>
> - Show quoted text -