DataGridView can't replace DataGrid?

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

    DataGridView can't replace DataGrid?

    I've written a DataGrid class that inhertis from DataGrid. There's a
    lot of code in this class specific to the DataGrid's functionality. I
    mainly want to use the DataGridView for drop down combo boxes. I
    thought about creating another custom type class for DataGridView and
    possibly use a composite class to bring in all of the CustomDataGrid' s
    functionality.

    I was hoping to override the DataGridView's DataSource and assign to
    the composite DataGrid.DataSo urce. Then somehow bubble the DataGrid
    source up into the DataGridView where I would have the best of both
    worlds - all the CustomDataGrid' s functionality plus use of the
    DataGridView. No...no...no!

    The two are very different under the hood. A DataGridView can't lay on
    top of a DataGrid.

    So, if I want all of my CustomDataGrid' s functionality plus new
    features from the DataGridView, what is the best route?

    Thanks,
    Brett

Working...