Click here to Skip to main content
16,023,339 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i try to change row value i am getting "Cannot perform '=' operation on System.String and System.Int32. " Error.
string receipient = Common.GetReceipientType(Convert.ToInt32(row[ReceipientType]));

row[ReceipientType"] = receipient; -- here throwing error

This is only happens when i execute following statement
dvGenericNotifications.RowFilter = String.Format("receipientType={0}", ddlType.SelectedValue);
Posted

1 solution

Try changing to;

dvGenericNotifications.RowFilter = "receipientType='" + ddlType.SelectedValue.tostring() + "'";
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900