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.
Related
I need to show a tree like structure associated with each row of grid like below picture. Whenever I click on + button of the row, some options should appear for that particular row.
Googled a lot but did not find anything fulfilling my requirement.
Please share your knowledge if you have done like this before.
I got following links very useful for creating hierarchy of grids or grid into grid or expandable grids.
Telerik:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx
DevEx
http://demos.devexpress.com/ASPxGridViewDemos/MasterDetail/DetailTabs.aspx
Codeproject (with the help of Nag)
http://www.codeproject.com/Articles/160773/Expandable-Rows-in-GridView
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.
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.
My Grid view in C# asp.net extends too far when editing and its causing a scroll bar at the bottom I've searched for several solutions but unable to find anything that works any help would be greatly appreciated
Change the AutoSize property of the GridView's Column to False.
Also make sure that you are not AutoGenerating the Columns / Fields as well. set that property to False as well
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.