Home All Groups Group Topic Archive Search About
Author
4 Dec 2006 10:30 AM
si_owen
Hi all i have a data grid receiving info from a db. There are several
records for each date and i want to add either a blank line or a
coloured line to seperate the records for the instance when the date
changes. I have the code to check for the different dates, just need a
line of code to add that will add some sort of formating to the grid.

Author
4 Dec 2006 11:18 AM
Alam
Hi
Remove DataSource Property of datagrid and add one record at a time and
in between use Datagrid add method to add blank lines.
If the user is to update data rid items you will have a problem!
Author
4 Dec 2006 11:21 AM
Alam
Alternative is to use the following
datagrid.AlternatingRowsDefaultCellStyle.BackColor = Color.Beige
Alam wrote:
> Hi
> Remove DataSource Property of datagrid and add one record at a time and
> in between use Datagrid add method to add blank lines.
> If the user is to update data rid items you will have a problem!

Alternative is to use the following
datagrid.AlternatingRowsDefaultCellStyle.BackColor = Color.Beige