|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataGridHi 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. 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 Alam wrote: > Hi Alternative is to use the following> 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! datagrid.AlternatingRowsDefaultCellStyle.BackColor = Color.Beige |
|||||||||||||||||||||||