DataGrid

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • si_owen

    #1

    DataGrid

    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.

  • Alam

    #2
    Re: DataGrid

    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!

    Comment

    • Alam

      #3
      Re: DataGrid

      Alternative is to use the following
      datagrid.Altern atingRowsDefaul tCellStyle.Back Color = 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.Altern atingRowsDefaul tCellStyle.Back Color = Color.Beige

      Comment

      Working...