How to show many statuses in a windows form - c#

The program I'm making will need to show many statuses and websites information. I need to know the best way to go about doing this. I have had 0 luck with tableLayoutPanel.
I would like it to be similar to how these are on iOS, but can't find anything similar for C#.
Any help or tips would be VERY appreciated.

You could use a TableLayoutPanel. The catch is that you will need to add the rows, and then the controls to the rows, on the fly. You will also have to reorder the rows manually if a row is deleted or moved.
You could also style a datagridview control to look like this, and the datagridview has already done most of the heavy lifting of the databinding for you.
Finally, you may just be able to get away with the ListView control, depending on the functionality you need. This should be the easiest approach

Related

Editable GridView in ASP.NET

I am looking for some help to get started on creating an editable GridView in ASP, I already have everything working in a Form Application. Now my plan is to convert it to a Web application using ASP.NET. Not too hard I'd say, but I just have some trouble with my GridViews. So here is what my current application does and what I want it to do in ASP:
I created multiple GridViews, with only a single column. Then on this column, rows will be added when the application is started, how many should be added is found in the database. Some of these rows will be filled with data from the database, some will be left empty. I already have the code for this, just need to convert it to work with ASP. I want the user to be able to edit all these rows, including the ones that are empty. These columns do nothing fancy, the user is only able to put numbers in them.
Since I'm completely new to ASP, I have no idea how to create a GridView that has empty editable rows with it. Maybe it's very simple, but a nod in the right direction would be very much appreciated! If anymore info is needed, please let me know
What i want to do in ASP.NET
GridView is one of the the most powerful control in the long line of controls since .NET released under WebForms, it is so vastly used that there are thousands of examples and tutorials to do almost everything.
Since my times learning the good things about the GridView, I always rely on 2 websites, and today I will make them my answer.
One, I can no longer found, was something like The GridView Guy, a lovely website with the best tutorials to raise the .NET control to do almost everything.
The Seconds is the famous Matt Berseth and all his tutorials surrounding not only the GridView but other controls as well.
http://mattberseth.com/blog/gridview/
There are plenty more tutorials out there for this, like:
http://www.codeproject.com/Articles/16769/Full-featured-Editable-GridView-Control
http://www.dotnetspark.com/kb/643-how-to-editupdatedelete-gridview.aspx
http://aspnet-with-c-sharp.blogspot.dk/2011/02/fully-editable-gridview-in-aspnet-2.html
You just have to follow up and if you find a wall that you can't climb, assure that someone around here can help you out, just show us what you need to do, and what have you tried.

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!)

Loading and unloading mechanism for items of a listbox in WPF

I want to create an application in WPF using C# in which I want to introduce Loading and unloading mechanism on items of a listbox in a certain visible area. In brief, there are a ton of items present in Listbox, while the user scrolling down or up inside a visible region then the visible items will be only take the memory or will be loaded and rest of the items whose are not visible they will not take any memory or will be unloaded.
I don't have any basic idea about how to go for it.Could anyone please let me know how to go for it, and what should be the basic steps I have to take and which articles should I have to look? Any clue would be highly appreciated.
Thanks in advance
you may look at VirtualMode this is one of the approaches to control the loading of items.
The comment above seems valid - if you try to do this as the user scrolls then it's going to create a very unstable UI. What about just adding a "more..." option at the bottom of the list if there's more data?

Increase Performance of DevEx WPF Grid

I'm using the DevEx DXGrid (WPF) to show about 2,000 rows of data. I'm using a DataRow Template to get Master-Detail behavior (a new detail grid for each row).
My application responds extremely slow to almost all use input (to the grid). for example:
scrolling
expand/collapse group rows
resize app window
I've contacted DevEx support about this - but they say the solution is non trivial and they are waiting until next major version to 'fix' this.
Have you found any solutions to these problems? I'm hoping there is a way to structure xaml or code to avoid some of the performance problems. I'd be very interested to hear what performance problems you've encountered with the DXGrid and how you solved (or not) them.
thanks.
Indeed, we have changed the way the DXGrid works and it should operate faster. However, this improvement will be only visible in 10.2 and it relates the expanding / collapsing group rows.
If you have problems with scrolling, please post a sample project in the support center showing your performance issues. We will try to improve the control based on your particular situation.
As a general rule of thumb, simply put: the less controls, the faster it will be.
When using the GridControl, you may want to look into using the CellDisplayTemplate and use a very lightweight control to display the content of the cell, and then use the CellEditTemplate for your heavier edit control, as the CellEditTemplate is not is not loaded until the user enters the cell. This becomes very powerful the bigger your GridControl is.
See 3 or 4 for more info on GridControl optimization.

Free Windows Forms Components Similar to jQuery UI Draggables

EDIT:
So, I ended up making my own basic solution to this problem, and it can be found in my own answer to the question below. Or, here's a link.
Original Post
I'm doing some UI programming for a small .NET application. The application has some collections of items that need to be displayed in a grid sort of format (X columns by Y rows) and the grid elements need to be able to get dragged around to different grid locations, and possibly out of the grid all together.
The most comparable sort of UI design elements I can think of are the jQueryUI Draggables.
Do I have to roll my own or are there components people have already written to act like this? Even better, are there any free components? Or is there an easy way to do this that I just don't know about (don't do a lot of .NET UI programming..)
Also these "grid items" need to be able to include windows form components. The DataRepeater control is close to what I need, except it only supports horizontal or vertical alignments, not grids of items.
Here's a visual example of what I'm looking for:
I tried to stick with a halloween theme here.
Well I rolled my own solution and hosted it on GoogleCode:
draggableitemorderedpanel- A .NET Winforms Component... Kinda like jQuery UI Draggables (not really, maybe someday)
here's a screenshot:
(source: googlecode.com)
and another just resized:
(source: googlecode.com)
Hope this helps someone else out. Also it's super basic and pretty sucks right now but gets the job done.
Anyone that wants project access can have it.
The System.Windows.Forms.TableLayoutPanel control supports dragging and dropping, you just have to handle the right events. You could make your own "GridItem" user control, with the icon, caption, background color, etc displayed on a Panel, and then plop a bunch of them in the tablelayoutpanel, and wire up some event handlers. Here's something similar:
http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvcs/thread/1cade626-b76d-40c5-9e5a-101cf2a5e412

Categories