473,326 Members | 2,099 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,326 software developers and data experts.

DataGrid borders

Hi all,

I have a datagrid receiving results from a database with several
records for specific date, what i want to do is add a line or blank row
under the last record for that date and before the records for the next
date begin.

does anyone know the code to implement this???

any help will be much appreceiated,

Cheers

Simon

Nov 29 '06 #1
2 1034

si_owen wrote:
Hi all,

I have a datagrid receiving results from a database with several
records for specific date, what i want to do is add a line or blank row
under the last record for that date and before the records for the next
date begin.

does anyone know the code to implement this???

any help will be much appreceiated,

Cheers

Simon
Probably a few ways to do it...
One way would be to manually go through the result set that comes back
from the database and add each row to the datagridview. You'd have to
look ahead to the next row, and if the next row has a different date
than the current one, you could just add an exta blank row. This
assumes that your data comes back ordered by date...

Nov 29 '06 #2
exactly the way i was planning to do it was just after a possible line
of code that woukld add the blank line to gridview, or put a coloured
line between the records for the two different dates already have the
code to check for the different dates.

Dec 4 '06 #3

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

Similar topics

1
by: Julie | last post by:
I need to get the actual client area of the datagrid. DataGrid.ClientSize doesn't seem to take into account: borders and scrollbars (if visible). What I need is a way to get the visible width,...
2
by: Bernt Fischer | last post by:
Hello I want to render a datagrid with transparent borders (cellspacing = 1) so the underlying background shines through. Unfortunately, ASPNET renders the <table> tag with a 'rules="all"...
1
by: ruca | last post by:
Hi, I have a datagrid that I want to set different styles for header and normal items. The problem is that I setup right in properties of datagrid, but nothing happens in design. I can't say...
5
by: Kat | last post by:
Hi, I'm trying to set up an asp.net page using flow layout so I'm putting all my controls into a table grid, etc. I use several radiobuttonlists and datagrids that are generated from datasource....
3
by: Lars Netzel | last post by:
Hi! How can I get ONLY vertical Gridlines WITHOUT a border around the whole grid? I have "GridLines=vertical" and "BorderStyle=None" and still I have a border around the whole grid! /Lars
5
by: tshad | last post by:
I have been trying to figure out what the Datagrid is doing to create its formatting. I found that some of my Datagrids have a 3D type of border and sometime it has a straight line. I finally...
0
by: MrMike | last post by:
If I have a datagrid that, when printed, takes up more than 1 page the datagrid's borders will only print on the first page. How can I have the borders print on each page? Thanks.
2
by: CSL | last post by:
I am using the DataGrid in a Windows Application, how can I adjust the widths of each column individually.
3
by: Alex Maghen | last post by:
I'd like there to be a border around each row of my data-grid but NOT between the columns. I've tried setting BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"...
1
by: Arpan | last post by:
The output of a DataGrid is nothing but a HTML table. To color or change the width of the outer 4 borders of a DataGrid, one can use the properties "BorderColor" & "BorderWidth" respectively but...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.