Select to view content in your preferred language

DOMAIN ON FEATUREDATAGRID CODE BEHIND

527
0
02-12-2014 06:39 AM
SheridanNava
Occasional Contributor
Example: i have a field "STATUS" with coded values 0= "INVALID" , 1 = "VALID" , the code below get only the values 0 and 1, so the value that i need is the description. How to bind a field with code value domain??.



                            _myfeaturedatagrid.Columns.Add(new DataGridTextColumn()
                            {
                                CanUserSort = true,
                                SortMemberPath = "STATUS",
                                Binding = new System.Windows.Data.Binding("STATUS"),
                                Header = "PRIMARY STATUS" , 
                            });
0 Kudos
0 Replies