Hierarchical Data Grid View

Thank you for your suggestion. However, as I have a deadline to finish the project soon and with limited budget I would rather use resources within VS 2008. I use to be able to do it easily with datagrid in VS 2003 but as I haven't done any programming for a while and now using vs 2008 I thought may be it was something simple to do with a few lines.

Hierarchical data stage

Again thank you very much for your replies but if you know a way I could use datagridview to display master/details tables I would be much obliged.

Hierarchical Data Stage

I am trying to construct a datagridview that will show a number of rows with a particular set of fields, but also allow me to show some 'subrows' ie rows that can be expanded below the parent row in question (if that parent row has these children - part of the datasoruce) the only real problem is that the expanded rows will have completely different fields(columns) is this possible with a standard datagridview in a windows form? I am presuming somehow I would have to shoehorn in a new datagridview in a row of the parent grid. We do have the Syncfusion suite which includes the gridgroupingcontrol. But after much hair pulling and other pains.

The Kettic DataGridView Control offers the hierarchical data structure support, which is able to display hierarchical master-detail data. This grid component allows UI designer process the hierarchical data at design time as well as in run time with the C# API included in the grid control. RadGridView for WinForms Hierarchy Overview In this video you will learn the various ways you can display hierarchical data in a RadGridView. (Runtime: 12:13), gridview-hierarchical-grid-binding-to-hierarchical-data 001.

I have given up on that completely. Short answer: No. You need a custom component for this. There are a lot of good efforts out there on making a hierarchical treeview.

Like in the CodeProject article or from Component One (paid). I understand you want different fields on the subnodes though, and I'm unsure to what extent these controls support that. I know FlexGrid support some customization of columns for different rows, but it will probably involve quite some manual work - databinding is not well supported. Finally, you might want to consider if your idea of a customized GridView is the best approach to your problem in the first place. Could a Master-Detail-view be a better approach?

PS: I'm not affiliated with ComponentOne, but I've used FlexGrid in a project.

Posted on