Change value in a Datagrid

HawaiiDragon used Ask the Experts™
Okay I have a data grid and when it retrieves the value from the database its posting either (True or False) I want it to display (Yes or No). I am BRAND NEW TO JQery and JSON.  I love being GREEN NOT!
                    var ResultsGrid = new Grid
                        GridID = "results",
                        GridTitle = "Code Types Grid",
                        GridName = "AAACodeOutputs",
                        DataBind = "source:SomedataSource",
                        Columns = Grid.CreateColumns(
                         Grid.Column("Code Type", "CodeType", 500),
                         Grid.Column("Add Allowed", "UserCanAddFlag", 100)                  
                        Properties = new GridProperties()
                            Scrollable = true,
                            Groupable = false,
                            Sortable = true,
                            Selectable = true,
                            Autobind = false,
                            Pageable = true

Open in new window

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
UserCanAddFlag = tt.UserCanAddFlag,
                // to change the bool value to a yes no from a true false use the following
                UserFlagYesNo = tt.UserCanAddFlag ? "Yes" : "No"

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial