DataSet and DataGrid and DataGridComboBoxColumn


  • I'm using a DataSet and DataGrid.

    I bind them like this :

    ObjDataAdapter.Fill(ObjDataSet);ObjDataGrid.ItemsSource = ObjDataSet.Tables[0].DefaultView;

    I want to add DataGridComboBoxColumn to ObjDataGrid and show a ComboBox in each row . how can I do that?

    Sunday, October 24, 2010 9:13 AM


All replies

  • i have an idea . split ObjDataSet columns and add them manually to OJDataGrid . at the end add

    DataGridComboBoxColumn. does anybody knows how to do that? 

    Tuesday, October 26, 2010 11:02 AM
  • Hi Hmd810,

    You can use DataGrid.Columns property to define the columns in a DataGrid.

    Please refer to for details.

    Best regards,


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Wednesday, October 27, 2010 9:12 AM