I'm using Silverlight 4's gridview in my page, and I would like to have collapsible columns (to hide some rarely needed information). I had a look to DataGridTemplateColumn but it doesn't seem to allow me to do that. Googleing on this problem didn't help me either. (the only information I found is to set the visibility and/or the width of the columns in the code, but thatdoesn't solve my problem of inserting the splitter/expander).
Is there a way to do that ?
Thanks in advance !
Haver you had a look at the silverlight toolkit yet? They have a nice expander in the online demo that may do what you're looking for.
Related
I'm searching for extended ListView control with a filter boxes on the column headers - something like:
The image above is from DataGridExtensions WPF control, but I need a control for WinForms.
It will be excellent to have a control based on ListView, but any other help is appreciated (DataGrid-based control for example).
Thank you in advance.
You can either do it on your own by setting the ListView property OwnerDrawn.
Handle the DrawListViewColumnHeaderEventHandler and add your controls there. Then handle the changes and replace the ListView content by the filtered data. Or replace your backing data and refresh the control when you use VirtualMode.
If you want to use an existing, free control, I recommend to check on CodeProject. E.g.:
A simple one:ListViewFilter Control for .NET
And a really sophisticated one: A Much Easier to Use ListView
DataGridView-AutoFilter is a ready-made Nuget package, you just need to download it and follow this article, it is an easy and enhanced approach. DataGridView-AutoFilter demo example.
I would like to extend the Property Grid to add another column as this picture illustrated (side by side). I've searched but couldn't find any solution to this. Is there any way or workaround way of doing this? Greatly appreciated any suggestion.
I need a custom control element. I prototyped it and here it is on the picture. I think it is pretty self-explanatory. Could anyone suggest me how to organize it? I am not a WPF guru so if it will be working solution I'll better use it instead of doing by myself.
Sadly I can't post image, so it is here: http://imageshack.us/photo/my-images/521/control1.png/
Should I use datagrid with custom templates?
If so my question is how to populate row cells with custom contols and how to handle events on this controls to operate the RowId number?
How to apply custom templates for any individual cells? I found articles where templates applyed only for entire grid or column.
If anyone can help with this I would really appreciate it :)
I would suggest you to use ListView in grouping mode (with styles and templates)to accomplish this. Here are few samples doing similar to what you want to achieve -
ListView with grouping (In GridView mode)
Empty groups in WPF ListView
MSDN is also having one sample for this -
ListView Grouping Sample
I would personally use a TreeView. If your classes are already grouped properly ,you can then use HierarchicalDataTemplates to define how the TreeView works with each type. This will involve templates and triggers. Really, this will be mostly xaml, with very little event coding.
How do I set / change the item selection color in XAML for a WinRT GridView control? I've tried looking around, is there also a procedure for doing it visually on Blend for VS11?
I've looked at GridView.ItemContainerStyle tag and I couldn't find much help online.
There was an earlier question that was asked about disabling tap visualization in a GridView that might help you.
Extracting the style of a GridViewItem is not available on the GridView itself, so if you want to do it yourself - you need to put a GridViewItem control separately in some page/user control and use the designer tool to edit the template. Or you can just use mine from that other question. I think what you would need to change is the use of the ListViewItemHighlightBrush in that template.
I'm just starting out with GTK# and I have a NodeView working and now I want to enable the columns to be resizable and sortable by the user (like the details view mode in Windows Explorer). I have poked around on the internet but can't find help. Am I using the wrong widget for this??
EDIT: Finally moved my answer to a proper answer post, see below.
Thanks!
Jason
Okay, I found out how to make the columns resizeable but you have to set it on each column the way I figured it out. I'm still wondering if there is a way to make them all resizeable by setting something on the NodeView itself. Anyhoo, here is my resize solution:
myView.AppendColumn ("Genre", new CellRendererText (), "text", 5).Resizable = true;
After a little snooping in other people's code it appears that I need to attach sort logic to the data store.