http://www.telerik.com/community/forums/thread/b311D-ebecm.aspx
However, he had to resort to an alternative to use two grids instead of master/detail. I'd rather use master/detail. Can you help? Thanks.
Here is my snippet of my master/detail relation. City has single quote in value
<
DetailTables><telerik:GridTableView DataKeyNames="City" Name="ITContact" GridLines="None" Width="100%" BorderStyle="None" GroupLoadMode="Client">
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="City" MasterKeyField="City" />
</ParentTableRelation>
In debugging, I have no problem in retrieving the detail table of City with single quote in value. The statements of below in DetailTableDataBind event handler executes with no error.
switch (e.DetailTableView.Name) {
case "ITContact":
string City = dataItem.GetDataKeyValue("City").ToString();
DataSet dsResult = new WorkflowParticipant().GetITContactsByCity(City);
e.DetailTableView.DataSource = dsResult;
break;
}
Stack trace shows that the error happens at System.Data.ExpressionParser.Parse()
System.Data.ExpressionParser.Parse() +442
System.Data.DataExpression..ctor(DataTable table, String expression, Type type) +154
System.Data.DataExpression..ctor(DataTable table, String expression) +35
System.Data.DataView.set_RowFilter(String value) +192