I need to display rows in UltraGrid starting from bottom and going towards the top rather then normally where they are displayed from the top to the bottom.
Is there a setting of a property that needs to be set to achieve this display? I can't seem to find it.
Example of required layout
This functionality isn't built into the WinGrid control and you should log a new product idea on the NetAdvantage for Windows Forms product idea page for this if you are looking for this functionality.
You may be able to do something like this using a creation filter to move the existing rows if there are not enough rows to fill the grid. If you do pursue this you would still need to sort the rows so that they are already in the correct order first and they you would move the existing rows down when they don't fill the entire grid. There are more details on creation filters in the help.
Related
Is it possible to show a subtitle in a power bi graph? I want to show the user that, this specific graph does contain drill-down(like the below-attached image).
If I add a hardcoded text box it is overlapping with the graph. Is there any way to show that the particular graph contains drill-down(like if I hove on the graph title, It should this contains drill-down)
Please suggest some ideas.
Usually, if drill-down is available, it shows some navigation buttons on the top right of the graph, which is basically is an indicator that drill-down is available:
Navigation buttons
Another option, which I personally do not like, but that might work for you. You can create a measure which just displays some help text like "Drilldown is available" and you can place it to the "Tooltips" section of the graph. When user hovers the mouse over the graph data, he will see the tooltip with this text. Something like this:
Tooltips
I have made a QTreeView to display a very large and continuous data set. Since the data set is continuous, I delete initial rows when the total number of rows is greater than a specified amount.
I have used a custom model for this purpose
The whole system is working correctly and displaying data.
But I want it to autoscroll to the bottom to display latest data. If i use scrollToBottom at row addition it completely slows down the entire view-model. But If i use m_pTreeView->setAutoScroll at the start, it has not effect.
Moreover if i click on the view, it completely slows down.
I am using Qt 4.7.1
How should I auto scroll to the bottom without compromising on performance?
And show I remove the lag/drastic performance hit when I click on the view?
the whole code is available at this repo:
https://github.com/daniyalyasin93/qt_qtreeview_hugedata/
I'm rebuilding a project I had already done in Qt, but using gktmm just for fun.
The projects contains several tables, which get more and more columns and rows as days pass. Eventually it starts being necessary to scroll horizontally, and I'd like my gtk::TreeView to have headers on its rows, so they are visible all the time while scrolling horizontally and vertically
This is the new project (left) vs the old project (right)
As you can see the old one has headers on the rows (i forgot to put them on columns too, i know) and that's what I'd like to achieve. (As well as coloring)
If i simply set up the first column and write the names there, it will go out of sight when scrolling horizontally
I don't think that this is actually implemented in gtk::TreeView. To get that functionality you might have to override the scroll method(s) and hide/show columns instead of scrolling the view.
Gnumeric uses the GocCanvas widget from the goffice library to achieve the desired effect, but I haven't seen C++ bindings.
Well, so far the closest working solution I've found is creating a side treeview besides the original one and populate the headers into it.
This will require the following
to connect both scrolled windows so they vertically scroll at the same time
connect the rows so whenever I expand a row on either treeview, the corresponding row will expand on the other treeview
connect the rows whenever a row is selected on either treeview, the corresponding row will be selected on the other treeview
I really really hope this is somehow possible, but I've just figured this out and I'm yet to try the connections
I'm using a CListCtrl with my own "DrawItem" to draw some custom graphics into the first column, in front of the text. The text is moved ~20 pixels to the right for this. That part works.
If the user double-clicks the column divider in the header, Windows calculates the best column width. But of course Windows doesn't know my custom drawing. So the result is ~20 pixels too small for the first column.
How can I correct that?
Found a workaround:
I can trick MFC into thinking that the list control uses checkboxes:
pMyList->SetExtendedStyle(pMyList->GetExtendedStyle() | LVS_EX_CHECKBOXES);
The user will never ever see the system's checkboxes (because of my custom drawing), but this gives me just the space that I need.
I have a XamGrid that I've got displaying several dynamically generated columns, and one of those columns can have a listbox in it that sizes itself according to how many items are in it (but has a maximum height constraint). I want each row of the XamGrid to basically only be as large as it needs to be - which they are at first, but after scrolling up and down the contents of the grid a bit I find that rows that had hardly any values in the listbox (so should be fairly small in height) are now the same height as the largest rows I've scrolled into view previously. The result is a lot of wasted space, so I'm wondering if anyone knows of a way to make it so that the rows don't automatically resize themselves to match the largest row that has been loaded. I've tried taking a look at the control template but all I see in it are 3 parts and can't see any way to edit or look inside those parts.
PS I would have posted this on Infragistics own support forums but I can't for the life of me actually find any way to post new topics on there even when signed in with my IG account... great design.
Thanks
Chris
Set the RowHeight property to Dynamic. That should take care of the issue for you.
<ig:XamGrid RowHeight="Dynamic" ... >