473,385 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Headers in Datagrid spanning multiple columns.

I am using a datagrid to display some data. I need to
create 2 header rows for this grid with columns of
varying spans. In html it would be the following.

<Table>
<tr>
<td colspan=8>Official Impact Summary</td>
</tr>
<tr>
<td colspan=2></td>
<td colspan=3>Program Totals</td>
<td colspan=3>Official Totals</td>
</tr>
<tr><td></td>...

Is this kind of thing possible with a datagrid and if so
how do I do it.

Thanks,

Billy Jacobs
Jul 21 '05 #1
7 7638

Hi Billy,

If you want to add one head row to the datagrid, you can use the
HeaderStyle.
If you want to add more rows, you can simply create a parent table which
contains
your 2 tablerows, then place the datagrid control into the bottom table
item.

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "Billy Jacobs" <bi********@csa.com>
| Sender: "Billy Jacobs" <bi********@csa.com>
| Subject: Headers in Datagrid spanning multiple columns.
| Date: Sun, 14 Sep 2003 00:28:13 -0700
| Lines: 21
| Message-ID: <04****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcN6kcGQTlsc6vV6SDiL96c0/deuoQ==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:108413
| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| I am using a datagrid to display some data. I need to
| create 2 header rows for this grid with columns of
| varying spans. In html it would be the following.
|
| <Table>
| <tr>
| <td colspan=8>Official Impact Summary</td>
| </tr>
| <tr>
| <td colspan=2></td>
| <td colspan=3>Program Totals</td>
| <td colspan=3>Official Totals</td>
| </tr>
| <tr><td></td>...
|
| Is this kind of thing possible with a datagrid and if so
| how do I do it.
|
| Thanks,
|
| Billy Jacobs
|

Jul 21 '05 #2
Yes but I need the header rows in the parent table to
exactly span a certain number of rows in the child table.

Is this possible and if so could you send me a small
example?

Thanks,

Billy Jacobs
-----Original Message-----

Hi Billy,

If you want to add one head row to the datagrid, you can use theHeaderStyle.
If you want to add more rows, you can simply create a parent table whichcontains
your 2 tablerows, then place the datagrid control into the bottom tableitem.

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Billy Jacobs" <bi********@csa.com>
| Sender: "Billy Jacobs" <bi********@csa.com>
| Subject: Headers in Datagrid spanning multiple columns.
| Date: Sun, 14 Sep 2003 00:28:13 -0700
| Lines: 21
| Message-ID: <04****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300| Thread-Index: AcN6kcGQTlsc6vV6SDiL96c0/deuoQ==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:108413| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| I am using a datagrid to display some data. I need to
| create 2 header rows for this grid with columns of
| varying spans. In html it would be the following.
|
| <Table>
| <tr>
| <td colspan=8>Official Impact Summary</td>
| </tr>
| <tr>
| <td colspan=2></td>
| <td colspan=3>Program Totals</td>
| <td colspan=3>Official Totals</td>
| </tr>
| <tr><td></td>...
|
| Is this kind of thing possible with a datagrid and if so| how do I do it.
|
| Thanks,
|
| Billy Jacobs
|

.

Jul 21 '05 #3

Hi Billy,

I think I do not quite understand your meanning.
What do you mean that "span a certain number of rows in the child table"?
I can not form an image of what you want in my mind.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "Billy Jacobs" <bi********@csa.com>
| Sender: "Billy Jacobs" <bi********@csa.com>
| References: <04****************************@phx.gbl>
<x$**************@cpmsftngxa07.phx.gbl>
| Subject: RE: Headers in Datagrid spanning multiple columns.
| Date: Thu, 18 Sep 2003 20:13:32 -0700
| Lines: 81
| Message-ID: <0b****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcN+XAFsRhWAifrPTYmLs5IHxzy8SA==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:109133
| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| Yes but I need the header rows in the parent table to
| exactly span a certain number of rows in the child table.
|
| Is this possible and if so could you send me a small
| example?
|
| Thanks,
|
| Billy Jacobs
| >-----Original Message-----
| >
| >Hi Billy,
| >
| >If you want to add one head row to the datagrid, you can
| use the
| >HeaderStyle.
| >If you want to add more rows, you can simply create a
| parent table which
| >contains
| >your 2 tablerows, then place the datagrid control into
| the bottom table
| >item.
| >
| >Hope this helps.
| >
| >Best regards,
| >Jeffrey Tan
| >Microsoft Online Partner Support
| >Get Secure! - www.microsoft.com/security
| >This posting is provided "as is" with no warranties and
| confers no rights.
| >
| >--------------------
| >| Content-Class: urn:content-classes:message
| >| From: "Billy Jacobs" <bi********@csa.com>
| >| Sender: "Billy Jacobs" <bi********@csa.com>
| >| Subject: Headers in Datagrid spanning multiple columns.
| >| Date: Sun, 14 Sep 2003 00:28:13 -0700
| >| Lines: 21
| >| Message-ID: <04****************************@phx.gbl>
| >| MIME-Version: 1.0
| >| Content-Type: text/plain;
| >| charset="iso-8859-1"
| >| Content-Transfer-Encoding: 7bit
| >| X-Newsreader: Microsoft CDO for Windows 2000
| >| X-MimeOLE: Produced By Microsoft MimeOLE
| V5.50.4910.0300
| >| Thread-Index: AcN6kcGQTlsc6vV6SDiL96c0/deuoQ==
| >| Newsgroups: microsoft.public.dotnet.general
| >| Path: cpmsftngxa06.phx.gbl
| >| Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.general:108413
| >| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| >| X-Tomcat-NG: microsoft.public.dotnet.general
| >|
| >| I am using a datagrid to display some data. I need to
| >| create 2 header rows for this grid with columns of
| >| varying spans. In html it would be the following.
| >|
| >| <Table>
| >| <tr>
| >| <td colspan=8>Official Impact Summary</td>
| >| </tr>
| >| <tr>
| >| <td colspan=2></td>
| >| <td colspan=3>Program Totals</td>
| >| <td colspan=3>Official Totals</td>
| >| </tr>
| >| <tr><td></td>...
| >|
| >| Is this kind of thing possible with a datagrid and if
| so
| >| how do I do it.
| >|
| >| Thanks,
| >|
| >| Billy Jacobs
| >|
| >
| >.
| >
|

Jul 21 '05 #4
Sorry I meant that I need the headers to span a certain
number of columns as described here.

I want to accomplish the following except with a datagrid.

<Table>
<tr>
<td colspan=8>Official Impact Summary</td>
</tr>
<tr>
<td colspan=2></td>
<td colspan=3>Program Totals</td>
<td colspan=3>Official Totals</td>
</tr>
<tr> 'Here would be my bound rows.
<td>Col1Info</td><td>Col2Info</td><td>Col3Info</td>
<td>Col4Info</td><td>Col5Info</td><td>Col6Info</td>
<td>Col7Info</td><td>Col8Info</td>
</tr>
<tr>...</table>
Thanks,

Billy Jacobs

Jul 21 '05 #5

Hi Billy,

I think what I originally suggested is a suitable solution.
I have write a sample code to fulfill it.

In HTML, add the datagrid into a table and set its width and height to
100%, like this:

<TABLE id="Table1" align="center" style="WIDTH: 464px; HEIGHT: 208px"
cellSpacing="0" cellPadding="0"
width="464" border="1" borderColor="#ff3366">
<TR>
<TD style="HEIGHT: 29px" align="center" colSpan="8">Official Impact
Summary</TD>
</TR>
<TR>
<TD style="WIDTH: 19.97%; HEIGHT: 107px" align="center"
colSpan="2">abcdefg</TD>
<TD style="WIDTH: 37.5%; HEIGHT: 107px" align="center" colSpan="3">Program
Totals</TD>
<TD style="WIDTH: 37.5%; HEIGHT: 107px" align="center"
colSpan="3">Official Totals</TD>
</TR>
<TR>
<TD style="HEIGHT: 29px" align="center" colSpan="8">
<asp:DataGrid id="DataGrid1" runat="server" Width="100%"
Height="100%"></asp:DataGrid></FONT>
</TD>
</TR>
</TR>
</TABLE>

Then when you bind the data to the datagrid, it will generate what you want:

SqlDataAdapter adapter=new SqlDataAdapter("select * from
jobs","server=localhost;database=pubs;uid=sa;pwd=" );
DataSet ds=new DataSet();
adapter.Fill(ds);
DataGrid1.DataSource=ds;
DataGrid1.DataBind();

If you still can not produce out, I will attach my project for you.

Hope this helps,
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "Billy Jacobs" <bi********@csa.com>
| Sender: "Billy Jacobs" <bi********@csa.com>
| References: <04****************************@phx.gbl>
<x$**************@cpmsftngxa07.phx.gbl>
<0b****************************@phx.gbl>
<l#**************@cpmsftngxa06.phx.gbl>
| Subject: RE: Headers in Datagrid spanning multiple columns.
| Date: Fri, 19 Sep 2003 05:01:57 -0700
| Lines: 26
| Message-ID: <06****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Thread-Index: AcN+pdNdTL/p2eRNSV6WuLXcNj+doQ==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:109156
| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| Sorry I meant that I need the headers to span a certain
| number of columns as described here.
|
| I want to accomplish the following except with a datagrid.
|
| <Table>
| <tr>
| <td colspan=8>Official Impact Summary</td>
| </tr>
| <tr>
| <td colspan=2></td>
| <td colspan=3>Program Totals</td>
| <td colspan=3>Official Totals</td>
| </tr>
| <tr> 'Here would be my bound rows.
| <td>Col1Info</td><td>Col2Info</td><td>Col3Info</td>
| <td>Col4Info</td><td>Col5Info</td><td>Col6Info</td>
| <td>Col7Info</td><td>Col8Info</td>
| </tr>
| <tr>...</table>
|
|
| Thanks,
|
| Billy Jacobs
|
|

Jul 21 '05 #6
Well this doesn't work. Even at design time the width of
the parent table columns are different than those of the
datagrid. So my column headers that span multiple columns
don't span the columns correctly.

Billy Jacobs.
-----Original Message-----

Hi Billy,

I think what I originally suggested is a suitable solution.I have write a sample code to fulfill it.

In HTML, add the datagrid into a table and set its width and height to100%, like this:

<TABLE id="Table1" align="center" style="WIDTH: 464px; HEIGHT: 208px"cellSpacing="0" cellPadding="0"
width="464" border="1" borderColor="#ff3366">
<TR>
<TD style="HEIGHT: 29px" align="center" colSpan="8">Official ImpactSummary</TD>
</TR>
<TR>
<TD style="WIDTH: 19.97%; HEIGHT: 107px" align="center"colSpan="2">abcdefg</TD>
<TD style="WIDTH: 37.5%; HEIGHT: 107px" align="center" colSpan="3">ProgramTotals</TD>
<TD style="WIDTH: 37.5%; HEIGHT: 107px" align="center"colSpan="3">Official Totals</TD>
</TR>
<TR>
<TD style="HEIGHT: 29px" align="center" colSpan="8"> <asp:DataGrid id="DataGrid1" runat="server" Width="100%"Height="100%"></asp:DataGrid></FONT>
</TD>
</TR>
</TR>
</TABLE>

Then when you bind the data to the datagrid, it will generate what you want:
SqlDataAdapter adapter=new SqlDataAdapter("select * from
jobs","server=localhost;database=pubs;uid=sa;pwd= ");
DataSet ds=new DataSet();
adapter.Fill(ds);
DataGrid1.DataSource=ds;
DataGrid1.DataBind();

If you still can not produce out, I will attach my project for you.
Hope this helps,
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Billy Jacobs" <bi********@csa.com>
| Sender: "Billy Jacobs" <bi********@csa.com>
| References: <04****************************@phx.gbl>
<x$**************@cpmsftngxa07.phx.gbl>
<0b****************************@phx.gbl>
<l#**************@cpmsftngxa06.phx.gbl>
| Subject: RE: Headers in Datagrid spanning multiple columns.| Date: Fri, 19 Sep 2003 05:01:57 -0700
| Lines: 26
| Message-ID: <06****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Thread-Index: AcN+pdNdTL/p2eRNSV6WuLXcNj+doQ==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:109156| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| Sorry I meant that I need the headers to span a certain| number of columns as described here.
|
| I want to accomplish the following except with a datagrid.|
| <Table>
| <tr>
| <td colspan=8>Official Impact Summary</td>
| </tr>
| <tr>
| <td colspan=2></td>
| <td colspan=3>Program Totals</td>
| <td colspan=3>Official Totals</td>
| </tr>
| <tr> 'Here would be my bound rows.
| <td>Col1Info</td><td>Col2Info</td><td>Col3Info</td>
| <td>Col4Info</td><td>Col5Info</td><td>Col6Info</td>
| <td>Col7Info</td><td>Col8Info</td>
| </tr>
| <tr>...</table>
|
|
| Thanks,
|
| Billy Jacobs
|
|

.

Jul 21 '05 #7

Hi Billy,

At design time, you add the datagrid into the table's bottom cell, then
after
setting the datagrid's width and height to 100%, the datagrid should fill
in the
cell.

I have attached my project in this post.This project uses the sql server's
default database to fill the datagrid.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "Billy Jacobs" <bi********@csa.com>
| Sender: "Billy Jacobs" <bi********@csa.com>
| References: <04****************************@phx.gbl>
<x$**************@cpmsftngxa07.phx.gbl>
<0b****************************@phx.gbl>
<l#**************@cpmsftngxa06.phx.gbl>
<06****************************@phx.gbl>
<rR**************@cpmsftngxa06.phx.gbl>
| Subject: RE: Headers in Datagrid spanning multiple columns.
| Date: Thu, 25 Sep 2003 20:09:32 -0700
| Lines: 131
| Message-ID: <00****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcOD25uruhFelYH7TJSa+XyfQDgtjA==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:109972
| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| Well this doesn't work. Even at design time the width of
| the parent table columns are different than those of the
| datagrid. So my column headers that span multiple columns
| don't span the columns correctly.
|
| Billy Jacobs.
|
| >-----Original Message-----
| >
| >Hi Billy,
| >
| >I think what I originally suggested is a suitable
| solution.
| >I have write a sample code to fulfill it.
| >
| >In HTML, add the datagrid into a table and set its width
| and height to
| >100%, like this:
| >
| ><TABLE id="Table1" align="center" style="WIDTH: 464px;
| HEIGHT: 208px"
| >cellSpacing="0" cellPadding="0"
| >width="464" border="1" borderColor="#ff3366">
| ><TR>
| > <TD style="HEIGHT: 29px" align="center"
| colSpan="8">Official Impact
| >Summary</TD>
| ></TR>
| ><TR>
| > <TD style="WIDTH: 19.97%; HEIGHT: 107px"
| align="center"
| >colSpan="2">abcdefg</TD>
| > <TD style="WIDTH: 37.5%; HEIGHT: 107px"
| align="center" colSpan="3">Program
| >Totals</TD>
| > <TD style="WIDTH: 37.5%; HEIGHT: 107px"
| align="center"
| >colSpan="3">Official Totals</TD>
| ></TR>
| ><TR>
| > <TD style="HEIGHT: 29px" align="center"
| colSpan="8">
| > <asp:DataGrid id="DataGrid1" runat="server"
| Width="100%"
| >Height="100%"></asp:DataGrid></FONT>
| > </TD>
| ></TR>
| ></TR>
| ></TABLE>
| >
| >Then when you bind the data to the datagrid, it will
| generate what you want:
| >
| >SqlDataAdapter adapter=new SqlDataAdapter("select * from
| >jobs","server=localhost;database=pubs;uid=sa;pwd= ");
| >DataSet ds=new DataSet();
| >adapter.Fill(ds);
| >DataGrid1.DataSource=ds;
| >DataGrid1.DataBind();
| >
| >If you still can not produce out, I will attach my
| project for you.
| >
| >Hope this helps,
| >Best regards,
| >Jeffrey Tan
| >Microsoft Online Partner Support
| >Get Secure! - www.microsoft.com/security
| >This posting is provided "as is" with no warranties and
| confers no rights.
| >
| >--------------------
| >| Content-Class: urn:content-classes:message
| >| From: "Billy Jacobs" <bi********@csa.com>
| >| Sender: "Billy Jacobs" <bi********@csa.com>
| >| References: <04****************************@phx.gbl>
| ><x$**************@cpmsftngxa07.phx.gbl>
| ><0b****************************@phx.gbl>
| ><l#**************@cpmsftngxa06.phx.gbl>
| >| Subject: RE: Headers in Datagrid spanning multiple
| columns.
| >| Date: Fri, 19 Sep 2003 05:01:57 -0700
| >| Lines: 26
| >| Message-ID: <06****************************@phx.gbl>
| >| MIME-Version: 1.0
| >| Content-Type: text/plain;
| >| charset="iso-8859-1"
| >| Content-Transfer-Encoding: 7bit
| >| X-Newsreader: Microsoft CDO for Windows 2000
| >| Thread-Index: AcN+pdNdTL/p2eRNSV6WuLXcNj+doQ==
| >| X-MimeOLE: Produced By Microsoft MimeOLE
| V5.50.4910.0300
| >| Newsgroups: microsoft.public.dotnet.general
| >| Path: cpmsftngxa06.phx.gbl
| >| Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.general:109156
| >| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| >| X-Tomcat-NG: microsoft.public.dotnet.general
| >|
| >| Sorry I meant that I need the headers to span a
| certain
| >| number of columns as described here.
| >|
| >| I want to accomplish the following except with a
| datagrid.
| >|
| >| <Table>
| >| <tr>
| >| <td colspan=8>Official Impact Summary</td>
| >| </tr>
| >| <tr>
| >| <td colspan=2></td>
| >| <td colspan=3>Program Totals</td>
| >| <td colspan=3>Official Totals</td>
| >| </tr>
| >| <tr> 'Here would be my bound rows.
| >| <td>Col1Info</td><td>Col2Info</td><td>Col3Info</td>
| >| <td>Col4Info</td><td>Col5Info</td><td>Col6Info</td>
| >| <td>Col7Info</td><td>Col8Info</td>
| >| </tr>
| >| <tr>...</table>
| >|
| >|
| >| Thanks,
| >|
| >| Billy Jacobs
| >|
| >|
| >
| >.
| >
|

Jul 21 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Hai Nguyen | last post by:
Below is my code, would anybody please figure out why it did not display any thing. The database did not anything in there yet, what it does is the header field. It just shows me the headers only,...
4
by: IGotYourDotNet | last post by:
on my web app, i need to display data from a table in a grid. (i know how to do that). The grid will be populated with data depending on what the user selects in a drop down box. My question is...
1
by: sri_san | last post by:
Hello, I have a datagrid in which the header needs to span over 2 columns. I have tried creating a tableCells and tableRow at runtime and set the columnspan property of a cell to 2. But, the...
2
by: gh0st54 | last post by:
hi still working on changing my data grid headers using resource files the thing is i always gat a count of 0 for my datagrid columns count, when will i get the columns count and when should i...
1
by: Olav Tollefsen | last post by:
Is it possible to create a DataGrid footer to span multiple columns? Olav
1
by: ElenaR | last post by:
I need to figure out how to name my column headers in a DataGrid. In VB6, I could write DataGrid1.Columns(0).Caption = "ID". What is the format for VB.NET? Thanks in Advance!
7
by: Billy Jacobs | last post by:
I am using a datagrid to display some data. I need to create 2 header rows for this grid with columns of varying spans. In html it would be the following. <Table> <tr> <td colspan=8>Official...
4
by: Mortar | last post by:
i need a datagrid with 2 header columns. The top one might have 1 column spanning 5 columns of the header row below it. what is the best way to do this? Could i have 2 datatables...1 filling the...
4
by: cooltech77 | last post by:
Hi, I am trying to build the following functionality in the datagrid. I have a lot of columns in the datagrid which are being populated from the database and the user needs to scroll...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.