none
DataSet and DataGrid and DataGridComboBoxColumn

    Question

  • 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

Answers

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 http://msdn.microsoft.com/en-us/library/ee340710.aspx for details.

    Best regards,

    Min


    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
    Moderator