| Author: Kapil Deo Malhotra 17 Apr 2008 | Member Level: Gold | Rating: Points: 2 |
Hi,
Try the following and see that helps
you can use the div tag and inside u can put the datagrid given below the code and the class is also providing to u also
<DIV class="UserGrid" id="div2" name="div2"><asp:datagrid id="Datagrid1" runat="server" Width="728px" AutoGenerateColumns="True" Height="165px"> <SelectedItemStyle BackColor="Lavender"></SelectedItemStyle> <AlternatingItemStyle BackColor="PapayaWhip"></AlternatingItemStyle> <HeaderStyle CssClass="DataGridFixedHeader2"></HeaderStyle> </asp:datagrid></DIV>
Div.UserGrid { OVERFLOW-Y: scroll; OVERFLOW-X: scroll; height: 345px; width: 98%; border: #000000 1px solid; }
put this defination to ur css file or in the HEAD part of page
|