This is a migrated thread and some comments may be shown as answers.

Changing Value in Grid based on Popup Custom Edit from DropDown

1 Answer 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Cynthia
Top achievements
Rank 1
Cynthia asked on 22 Apr 2013, 06:09 PM
I have a grid.  The grid displays a name from a value from a popup from a custom template.  (For example the name field is Category, the drop down binds to PK numeric values, but the name binds to the category name).

Other columns in the grid for the selected row serialize to the grid for text fields just fine, and I can see the changes after the update is issued in the grid.  However the "Category" column does. This is likely because the bound data on the popup form is the numeric CategoryId, while the column shown and bound in the grid binds to a separate Name field, just Category.

How do I keep those in sync?

1 Answer, 1 is accepted

Sort by
0
Cynthia
Top achievements
Rank 1
answered on 22 Apr 2013, 07:28 PM
I found how to do this, by using columns.ForeignKey, and binding to the list as defined in the grid.
Tags
Grid
Asked by
Cynthia
Top achievements
Rank 1
Answers by
Cynthia
Top achievements
Rank 1
Share this question
or