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
4341
WinGrid Assign Key value to the Bound Column
posted

Hi,

We have assigned a Dataset to a grid. The dataset has the following values

                 Description           Material               Labour

                    ABC                        0                                 1

                    MNO                      1                                 1

In the database we have joined the two table and got the final query , here the Material and Labour coulmns are stored in a Master table.

We want to store the "ID " and also another filed value of the Material and Labour coulmn along with it, We tried storing it in the Key property but it gives error saying the 'Key cannot be assigned to the bonund column', we have already used the Tag property for storing some other value.

We want to know is there any other property like Tag where we can store the "ID" value (we do not want to show this value to the user) ?

  • 469350
    Suggested Answer
    Offline posted

    What you should do is create a new class or structure that contains properties for all the information you need. Then you can store an instance of that object in the Tag.