Style not being applied to datagrid

I have a datagrid that I am attempting to set up an edit with a combobox.  I am using the technique where you add the "controls", including the combobox in a style.  I am also not using all the columns returned in my dataset.  WHen the code executes, I can step thru the code that implements the style, but when the grid is displayed, it shows every column in the dataset table that is bound to the grid, and no combo box. I can't figure out why.  Has anyone else run into this   

Answer this question

Style not being applied to datagrid

  • GoodMorningSky

    Make sure you have added in the style to the datagrid: 

    MyDatagrid.TableStyles.Add(MyGridTableStyle)


    And also make sure the GridtableStyle has the same mappingName as your datatable.



  • Style not being applied to datagrid