Inserting data into a Genexus transaction grid - genexus

I have a multi-level transaction, so I have set up a free style grid which in turn contains a grid. I would need a button or procedure of some kind within the free style grid that would allow me to code data into the innermost grid.
Note that the problem occurs even with only one level, I cannot insert data "from code" into the grid of a transaction.
I can do this in a normal webpanel thanks to the grid.load event but this is not present in the transaction grids.
Is there a way to solve this problem and "programmatically" enter data into a grid without having to enter it by hand?
I'm working with genexus 16u9 and wwp 13.15, but it is a problem present in all versions

Related

Use hierarchical tables in SlickGrid

We have a request from our designers to build tables something like this, with rows that expand to show essentially another sub-table underneath. In KendoUI documentation, this is called "Hierarchy."
We use SlickGrid v2.3 with a few additional plugins. We currently have tables with a similar row expand/collapse like this: https://mleibman.github.io/SlickGrid/examples/example5-collapsing.html . That does not allow for a completely different set of columns in the sub-table.
The question is, can this be done in SlickGrid or not?
It might be hard to do with current SlickGrid, there's no code that handles the hierarchical part itself so that would be lot of work to implement in SlickGrid. However it is implemented in Slickgrid-Universal, which is a wrapper on top of SlickGrid. You can see Example 5 and Example 6 which shows 2 types of Tree Data grids (hierarchical or parentId refs). We use it in production for a project that we have. Also note that this is not a grid within a grid, it's rather an expand/collapse the same as what you found in example5-collapsing.html, the only differences with SlickGrid is that Slickgrid-Universal has the code to deal with hierarchical data (filtering/sorting) while SlickGrid itself doesn't and also another nice to know thing is that expand/collapse is actually using data filtering behind the scene and you can see that in the total items displayed when you have the footer enabled.
Please note that I'm the author of Slickgrid-Universal and also a major contributor to SlickGrid as well
At the moment, it can't be done. In order to achieve its speed, Slickgrid enforces a fixed row height and a single scrolling canvas. It's just a different approach than used by HTML display grids.
You could put together a workaround using mutiple slickgrids or an embedded slickgrid in a group row, I suppose, but it would be messy.
One thing I have done is develop a SlickCombo, which is essentially a grid presented as a multi-column dropdown. It's a full grid and can offer editing.
That's probably as close as you'd get.
A comment: the MLeibman repo is long dead - you should be using: https://github.com/6pac/SlickGrid

VB6 Paging using listview

I'm thinking if there's a way (a component or reference) to breakdown an adodb.recordlist (e.g. records selected in sql database) consist of huge number of records.
Then a textbox can be used to jump by the user to jump into the page he wants to view.
Just wanna acquire an idea on how can i write this in codes.
You can set the page size with the .PageSize property and jump to a specific page by setting the .AbsolutePage property.
Here is an example.

UserControl in a DataGridView in Windows form

Looking for an example of a usercontrol in a datagridview row using Windows forms.
The Usercontrol would have multipe controls based on the business logic which depends on the the index of the row.
Thanks
You cannot insert a user control directly into a row in the way you would like. Your only possiblity is to add a new column type. Your custom column implementation would act like the other columns in that when it enters Edit mode it can create a control (in your case an appropriate one for the index number) and then have it work inside the cell until the Edit mode is exited. The issue would be drawing the cell when not in Edit mode.
You can see the source code of the builtin columns by using the .NET Reflector tool or search the web for custom DataGridView columns as there are many implementations that give sample code you could use as a starting point.

Telerik RadGrid refreshing a single row instead of using Rebind

I am using a RadGrid to display stock information. The data bound is a combination of 2 views and 2 tables. This is quite an intensive query, and the data behind it changes a lot. Now, when I update a value in a single row, I have to Rebind the data to update my grid (I use UpdateValues on the item, but it has no visible effect). This is taking too long to be user-friendly. Is there a simple way to work around it, so I can just update the row which has the changed data ?
I do not think there is a way to do that because the Telerik Grid is data bound control - hence to modify its source and refresh the data in the grid UI, you will need to bind all rows.
Dick

MS Expression Blend: Sketchflow - Populating a sub datagrid with data upon selecting a specific row of a master datagrid?

I've recently started using Expression Sketchflow to prototype some user interface designs. I currently have a master datagrid at the top of the page, which I would like to allow the user when selecting a particular grid row to see a sub-datagrid below be populated with specific data relevant to that specific row of master data.
Could anyone shed some light on the subject!?
Help greatly appreciated.
I figured out how to do this by reading this article:
Expression Blend 3 – secrets of working with data.
Here's the basic steps (you already did a couple it sounds like)
Create your sample data set
Under the Data tab select the List Mode and drag your collection onto the screen, a list view of your data will be created (Master datagrid)
Now, select the Details Mode and drag and drop your collection onto the screen where you want the details to be displayed. (sub datagrid)
Tweak the fields displayed by dragging properties into the respective containers or modifying the XAML / Bindings list
If you have a child collection in your data, you may have to jump through a few more hoops.

Resources