DataGridView Control with Grouping Capabilities - c#

I've seem some other posts regarding datagrids that allows grouping. I've downloaded the DevExpress DataGrid for Windows Forms but it really looks complicated. I actually need a Datagrid that derives from DataGridView as a lot of my data binding is code driven and uses the DatagridView classes.
I've managed to find this OutLookgrid on CodeProject, I was wondering if anyone used this before?
http://www.codeproject.com/KB/grid/OutlookGrid.aspx

I've downloaded the DevExpress
DataGrid for Windows Forms but it
really looks complicated.
Looking really complicated and being really complicated are not the same thing. I use the DX XtraGrid everyday and I can assure you its as complicated as:
gridControl1.DataSource = myDataTable;
.. if you want just a standard grid out of the box.

Related

how can nested grids for hierarchical data be created using Windows Forms Controls?

I'm looking for a way to create a DataGridView that has rows that when clicked expand to reveal another datagridview right below them. Is this possible to accomplish without creating a brand new datagridview-like control or am I better off displaying the nested datagridviews elsewhere?
(Here's an article that explains how to do it in ASP.NET. however, it's not clear whether it can be done with Windows Forms:
http://msdn.microsoft.com/en-us/magazine/cc164077.aspx)
You will allways need a custom control (free or paid) to achive this.
Tree View with Columns(free under CPOL)
DevExpress XtraGrid (paid)
Janus GridEx (paid)

Data presentation in WPF

At the moment, I´m writing a C# - WPF - application, where I often need to show a few Data out of the database.
Now, my "problem" is, that I don´t want to use a datagrid, because it is already used very often in my app.
Is there any control to show data to the user "beautiful" instead of a datagrid?
ListView with a GridView as View looks pretty nice by default. (Also there is nothing stopping your from making a nice style for the DataGrid)

How can I create my own ListView UserControl?

Ok so I have a table cell that I would like to use in this custom ListView UserControl, so I was wondering how exactly do you set one of these up and how do you call the cells to be my custom ones? Any help would be greatly appreciated :)
The ListView control is a b**ch, so if you are really planning to get your hands dirty with it, be prepared for a great big mess.
If you would prefer a ready-made solution, I will point you to this one: CodeProject - ObjectListView
We at ComponentOwl made custom ListView control called Better ListView. (Or maybe you can be interested in the freeware edition Better ListView Express).
You can also try the suggested ObjectListView.
The ListView control is -very- complex and contains myriads of little features all we had to implement. So I recommend you to look for a finished 3rd party control, since coding this is challenging (the BetterListView hit 40K lines of code only to meet requirements of ListView, now having about 80K+ lines of code!)

C# listview - embedding controls

Can anybody help me with embedding controls in the listview. I need to add button controls as subitem of listview. thanks
Well, you could be talking about the Windows Forms ListView, in which case you're pretty much SOL (sh*t outta luck.) You can custom draw on the ListView but even that has limitations in Windows Forms.
Or you could be talking about the Windows Presentation Foundation ListView. In this case it's really quite simple. You can create a DataTemplate that you associate with the ListView's columnn. Here's an example.
Or finally you could be talking about the ASP.NET ListView control which also has data templating support but the implementation is a bit different from WPF. Here's an example of that.
Use ObjectListView control which is opensource. It is excellent and is derived from ListView in Window.Forms.
Try Better ListView Express. It is free and allows custom embedded controls:
Better ListView has been created to fix known issues of the regular .NET ListView and solve common issues such as this one out of the box.
If you can use another control instead of a listview, try the DataGridView - you can add any type of control to a cell (subitem).
http://msdn.microsoft.com/en-us/library/e0ywh3cz.aspx

Editable data grid for C# WinForms

I need to present the user with a matrix of which one column is editable. What is the most appropriate control to use?
I can't use a ListView because you can only edit the first column (the label) and that's no good to me.
Is the DataGridView the way to go, or are there third party alternative components that do a better job?
DataGridView is the best choice as it is free and comes with .NET WinForms 2.0. You can define editable columns or read-only. Plus you can customize the appearance if required.
DataGridView is good.
If you prefer a prettier interface, Telerik controls are better.
If DataGridView will handle your needs, it's the right answer. Another option (although it seems to be unpopular around these parts!) is Infragistics NetAdvantage. The downsides to Infragistics are primarily a high cost and somewhat steep learning curve; the upsides are that these are some of the most powerful controls you'll ever find -- so if you need their flexibility, go for it.
I don't have experience with Telerik (which has been mentioned by others here), but they do seem quite good. Being that my company has invested fairly heavily in Infragistics, we're not liable to switch any time soon ...

Categories