Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
465
Replacing whole row in a WinGrid with another
posted

Hi,

I have a problem and I can't find any functionality in WinGrid to cover my requirements.
Let's start from beginning:

I have a WinGrid with numer of products ( I am versioning each product with name of the product and date ). Date is kind of history for me, used for processing and reporting stuff.
The idea is that I would like to show only latest information about product ( for latest date ). I can do this and that is fine.

My grid looks more or less like this:

PRODUCT NAME 1 | DATE 1 (HIDDEN ON GRID) | PRICE 1 | ITEMS 1 | DESCRIPTION 1
PRODUCT NAME 2 | DATE 2 (HIDDEN ON GRID) | PRICE 2 | ITEMS 2 | DESCRIPTION 2
PRODUCT NAME 3 | DATE 3 (HIDDEN ON GRID) | PRICE 3 | ITEMS 1 | DESCRIPTION 3

Product Name and Date is a primary key. We can have multiple entry for the same product with different dates but we will display only latest information for each product.

We can create new entry ( for each day ) or update information on the same day when entry has been created.

My problem is to hide whole row in WinGrid and replace ( on the same position in the grid ) with new row when we are creating entry for completely new day.
If row is updated we have no problem but if we have new row we have to hide existing one and add new one in the same place when old one has been displayed on the WinGrid.

There is any possibility to do this ?

Regards
Piotrek

Parents Reply Children
No Data