|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataGrid bordersHi 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 si_owen wrote:
Show quoteHide quote > Hi all, Probably a few ways to do it...> > 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 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... 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.
How do you translate your WinForms app? (outsourcing localization)
how to make cookies into an array? How to recognize a Command Line parameter? Looking for a simple explanation of how to walk through a dataset in .net 2.0 Logic Troubles - reading in a difficult textfile problem with join() Convert today's date and time to a long Its Urgent: I have export database into excel file if office not installed then it gives me error Where is the VS mru list file stored? Add new record to database |
|||||||||||||||||||||||