Hello,
In my grid, I have a user control that provides functionality for my insert/updates. I am getting the all too famous error:
"DataBinding: 'Telerik.WebControls.GridInsertionObject' does not contain a property with the name"
Now, in my code I have so far been successful with this issue by using the following coding:
protected
void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == RadGrid.InitInsertCommandName)
{
e.Canceled =
true;
ListDictionary newValues = new ListDictionary();
newValues[
"BudgetWSTypeID"] = string.Empty;
newValues[
"ProgramNameID"] = string.Empty;
newValues[
"FiscalYearID"] = string.Empty;
ECT.....
However, if you look at the below control (where the problem is occuring), you will notice that the selected value is coming from "DataItem.Grantee.GranteeID" -- how do I add this to my listDictionary for this to work? Perhaps I need to use a different object?
<
rad:RadComboBox selectedvalue='<%# DataBinder.Eval( Container, "DataItem.Grantee.GranteeID") %>' MarkFirstMatch="true"