I am binding a grid to a dataview/dataset loaded from a function call. The column I have set to be Boolean doesn’t display the values correctly. They all show to default to true even though I have one is set to false. In the function I am using the standard c# Boolean syntax of lower case. When its loaded into the dataview it is transformed into pascal case(true to True & false to False). I suspect this is my issue because if I add a row using a widget it works. Has anyone experienced this and have a work around?
Widget event to add a row
Dataview contents
Dataview contents after row added
Function with Dataset
try {
DataTable dt = new DataTable("Payload");
dt.Columns.Add("Name");
dt.Columns.Add("Display");
dt.Columns.Add("Time");
dt.Columns.Add("IsUsed");
dt.Rows.Add("TestName1", "TestDisp1","TestTime1",true);
dt.Rows.Add("TestName2", "TestDisp2","TestTime2",false);
DataSet ds = new DataSet("ds");
ds.Tables.Add(dt);
this.returnObj = ds;
} catch (Exception ex) {
error = ex.Message;
}