How To Freez Grid View Header
How To Freez Grid View Header
Step 2:
1. Go to new website in visual studio ,
2. Open ToolBox
Add new tab -> Choose items ->Brouse the path of CoolControl.dll
3. Drag and Drop CoolGridview in your Project->
Note:
CoolGridview also supports all Events, Properties and Classes of Asp Gridview
<Columns>
<asp:BoundField DataField="Branch" HeaderText="Branch"
SortExpression="Branch" />
<asp:BoundField DataField="Department_Name"
HeaderText="Department"
SortExpression="Department_Name" />
<asp:BoundField DataField="DoctorName" HeaderText="Doctor
Name"
SortExpression="DoctorName" />
<asp:BoundField DataField="AvailabilityStatus"
HeaderText="Generel Availability"
SortExpression="AvailabilityStatus" />
</Columns>
<RowStyle CssClass="gridheadsub02" />
<HeaderStyle CssClass="gridhead" />
<AlternatingRowStyle CssClass="gridheadsub01" />
</cc1:CoolGridView>
Note :
Eg;AllowResizeColumn ="true"
Step 4:
1. Add Datasource to Coolgridview
2. Run the project.
Eg:
.gridheadUsingcss
{
position :relative ;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
color: #000;
background-color: #EAA874;
width: 100%;
text-align:left;
background-position: center;
padding-top:2px;
}
Eg:
Step 4: