DataGrid question

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

    DataGrid question

    After I type my DataGrid name in the code, I am expecting to have a couple
    options (methods ?) available... I see them in sample code, but they are
    not available for me to select.

    DataGridView1.S etDataBindings

    and

    DataGridView1.T ableStyles

    And what is the difference between using SetDataBindings and DataSource ?

    Thanks !


  • Jack Jackson

    #2
    Re: DataGrid question

    On Mon, 23 Jun 2008 00:00:01 -0400, "Rob" <robc1@yahoo.co mwrote:
    >After I type my DataGrid name in the code, I am expecting to have a couple
    >options (methods ?) available... I see them in sample code, but they are
    >not available for me to select.
    >
    >DataGridView1. SetDataBindings
    >
    >and
    >
    >DataGridView1. TableStyles
    >
    >And what is the difference between using SetDataBindings and DataSource ?
    >
    >Thanks !
    >
    There are two different controls, DataGrid and DataGridView, with
    different properties and methods. It looks like you have a
    DataGridView but are trying to use properties and methods of the
    DataGrid. DataGridView is the newer control introduced in 2.0.

    SetDataBindings is the way data binding is set with the DataGrid
    control. The DataGridView uses the DataSource property.

    Comment

    • Rob

      #3
      Re: DataGrid question

      Thanks very much !

      "Jack Jackson" <jjackson@cinno vations.netwrot e in message
      news:i5gv54l8qh o57gi856qno9q55 8t3nuub0k@4ax.c om...
      On Mon, 23 Jun 2008 00:00:01 -0400, "Rob" <robc1@yahoo.co mwrote:
      >
      >>After I type my DataGrid name in the code, I am expecting to have a couple
      >>options (methods ?) available... I see them in sample code, but they are
      >>not available for me to select.
      >>
      >>DataGridView1 .SetDataBinding s
      >>
      >>and
      >>
      >>DataGridView1 .TableStyles
      >>
      >>And what is the difference between using SetDataBindings and DataSource ?
      >>
      >>Thanks !
      >>
      >
      There are two different controls, DataGrid and DataGridView, with
      different properties and methods. It looks like you have a
      DataGridView but are trying to use properties and methods of the
      DataGrid. DataGridView is the newer control introduced in 2.0.
      >
      SetDataBindings is the way data binding is set with the DataGrid
      control. The DataGridView uses the DataSource property.

      Comment

      Working...