Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Section headers in a Gridview?

Reply
Thread Tools

Section headers in a Gridview?

 
 
jonefer
Guest
Posts: n/a
 
      05-14-2008
How can I add section headers in a Gridview... is this possible?

Otherwise, I will have to put 3 gridviews in a table, and i'm not certain
about how to control column width as if the grid was one piece:

This is what I'm trying so far...
'SecurityDisabled' is a class that just makes the element invisible - (so far)

<table class="SecurityDisabled" style="width: 530px">
<tr>
<td align="left" style="font-weight: bold;
font-size: x-small; width: 769px; color: black;
font-family: 'Century Gothic'">
Measure</td>
<td align="center" style="font-weight: bold;
font-size: x-small; width: 231px; color: black;
font-family: 'Century Gothic'">
Phys<br />
Total</td>
<td align="center" style="font-weight: bold;
font-size: x-small; width: 231px; color: black;
font-family: 'Century Gothic'">
Phys<br />
%</td>
<td align="center" style="font-weight: bold;
font-size: x-small; width: 231px; color: black;
font-family: 'Century Gothic'">
Spec<br />
Avg</td>
<td align="center" style="font-weight: bold;
font-size: x-small; width: 231px; color: black;
font-family: 'Century Gothic'">
Target</td>
</tr>
<tr>
<td colspan="5" style="font-weight: bold;
font-size: x-small; color: black; font-family: Century Gothic">
Coding Level Intensity</td>
</tr>
<tr>
<td colspan="5" style="font-weight: bold;
font-size: x-small; color: black; font-family: Century Gothic">
Outpatient New</td>
</tr>
<tr>
<td colspan="5" style="font-size: x-small;
color: black; font-family: Century Gothic">
<asp:GridView ID="gvResource_Detail_01"
runat="server" AutoGenerateColumns="False" BorderStyle="Solid"
GridLines="Horizontal" Style="font-size: x-small;
color: black; font-family: 'Century Gothic'"
Width="530px" OnRowDataBound="gvResource_Detail_RowDataBound">
<Columns>
<asp:BoundField
DataField="Measure" HeaderText="Measure" SortExpression="Measure">
<HeaderStyle
HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField
DataField="Count" HeaderText="Count" SortExpression="Count">
<HeaderStyle
HorizontalAlign="Center" />
<ItemStyle
HorizontalAlign="Center" />
</asp:BoundField>
<asp:TemplateField
HeaderText="%" SortExpression="%">
<EditItemTemplate>
<asp:TextBox
ID="TextBox1" runat="server" Text='<%# Bind("[%]") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1"
runat="server" Text='<%# Bind("[%]") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle
HorizontalAlign="Center" />
<ItemStyle
HorizontalAlign="Center" />
</asp:TemplateField>
<asp:BoundField DataField="Spec
Avg" HeaderText="Spec Avg" SortExpression="Spec Avg">
<HeaderStyle
HorizontalAlign="Center" />
<ItemStyle
HorizontalAlign="Center" />
</asp:BoundField>
<asp:TemplateField
HeaderText="Target" SortExpression="Target">
<EditItemTemplate>
<asp:TextBox
ID="TextBox2" runat="server" Text='<%# Bind("Target") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2"
runat="server" Text='<%# Bind("Target") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle
HorizontalAlign="Center" />
<ItemStyle
HorizontalAlign="Center" />
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
<tr>
<td colspan="5" style="font-weight: bold;
font-size: x-small; color: black; font-family: Century Gothic">
Outpatient Established</td>
</tr>
<tr>
<td colspan="5" style="font-size: x-small;
color: black; font-family: Century Gothic">
<asp:GridView ID="gvResource_Detail_02"
runat="server" AutoGenerateColumns="False" BorderStyle="Solid"
GridLines="Horizontal" Style="font-size: x-small;
color: black; font-family: 'Century Gothic'"
Width="530px" OnRowDataBound="gvResource_Detail_RowDataBound">
<Columns>
<asp:BoundField
DataField="Measure" HeaderText="Measure" SortExpression="Measure">
<HeaderStyle
HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField
DataField="Count" HeaderText="Count" SortExpression="Count">
<HeaderStyle
HorizontalAlign="Center" />
<ItemStyle
HorizontalAlign="Center" />
</asp:BoundField>
<asp:TemplateField
HeaderText="%" SortExpression="%">
<EditItemTemplate>
<asp:TextBox
ID="TextBox1" runat="server" Text='<%# Bind("[%]") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1"
runat="server" Text='<%# Bind("[%]") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle
HorizontalAlign="Center" />
<ItemStyle
HorizontalAlign="Center" />
</asp:TemplateField>
<asp:BoundField DataField="Spec
Avg" HeaderText="Spec Avg" SortExpression="Spec Avg">
<HeaderStyle
HorizontalAlign="Center" />
<ItemStyle
HorizontalAlign="Center" />
</asp:BoundField>
<asp:TemplateField
HeaderText="Target" SortExpression="Target">
<EditItemTemplate>
<asp:TextBox
ID="TextBox2" runat="server" Text='<%# Bind("Target") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2"
runat="server" Text='<%# Bind("Target") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle
HorizontalAlign="Center" />
<ItemStyle
HorizontalAlign="Center" />
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
<tr>
<td colspan="5" style="font-weight: bold;
font-size: x-small; color: black; font-family: Century Gothic">
Specialty Referrals</td>
</tr>
<tr>
<td colspan="5">
<asp:GridView ID="gvResource_Detail_03"
runat="server" AutoGenerateColumns="False" BorderStyle="Solid"
GridLines="Horizontal" Style="font-size: x-small;
color: black; font-family: 'Century Gothic'"
Width="530px" OnRowDataBound="gvResource_Detail_RowDataBound">
<Columns>
<asp:BoundField
DataField="Measure" HeaderText="Measure" SortExpression="Measure">
<HeaderStyle
HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField
DataField="Count" HeaderText="Count" SortExpression="Count">
<HeaderStyle
HorizontalAlign="Center" />
<ItemStyle
HorizontalAlign="Center" />
</asp:BoundField>
<asp:TemplateField
HeaderText="%" SortExpression="%">
<EditItemTemplate>
<asp:TextBox
ID="TextBox1" runat="server" Text='<%# Bind("[%]") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1"
runat="server" Text='<%# Bind("[%]") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle
HorizontalAlign="Center" />
<ItemStyle
HorizontalAlign="Center" />
</asp:TemplateField>
<asp:BoundField DataField="Spec
Avg" HeaderText="Spec Avg" SortExpression="Spec Avg">
<HeaderStyle
HorizontalAlign="Center" />
<ItemStyle
HorizontalAlign="Center" />
</asp:BoundField>
<asp:TemplateField
HeaderText="Target" SortExpression="Target">
<EditItemTemplate>
<asp:TextBox
ID="TextBox2" runat="server" Text='<%# Bind("Target") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2"
runat="server" Text='<%# Bind("Target") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle
HorizontalAlign="Center" />
<ItemStyle
HorizontalAlign="Center" />
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
</table>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
section with in a section config file and reading that config file kampy Python 9 10-19-2012 10:59 PM
Problem with wsgiref.headers.Headers Phil Python 4 01-17-2010 04:47 PM
Server cannot clear headers after HTTP headers have been sent Ian ASP .Net Security 2 03-20-2007 09:00 AM
cant see bluetooth devices section in my control panel =?Utf-8?B?bWljaw==?= Wireless Networking 0 06-30-2005 10:35 AM
Reading 'received' headers: Email Headers Parsing dont bother Python 0 03-03-2004 08:18 PM



Advertisments