I am converting Infragistics 2010 v2 CLR3.5 to Infragistics 2014 v2 using 4.5 CLR using Visual Studio 2013 Professional Update 4. I am getting following error while building the project. Please reply immediately..........
Error:
operator '==' cannot be applied to operands of the type 'System.Type' and 'string'
GridRecordItem gCell = uGrid.Rows[i].Items[j]; gCell.Style.Reset(); if (flgReplace && gCol.Index == j) { if (btnAction == "Find") gCell.Style.BackColor = Color.FromArgb(255, 211, 137); flgNotFound = false; if (btnAction == "ReplaceAll" && gCell.IsEditable()) { bool checkType; if (replaceTxt.Length > gCell.Column.Key.Length) { alertMsg = "Replace With value exceeds the maximum allowable field length : " + gCell.Column.FieldLen; checkType = false; } else if (gCell.Column.DataType == "System.DateTime") { checkType = DSCommon.CheckDate(replaceTxt); alertMsg = "Enter correct DateTime value"; } else if (gCell.Column.DataType == "NUMBER")
Hello,
Thank you for contacting Infragistics!
This happens because gCell.Column.DataType is type of System.Type and you are comparing if System.Type and System.string are equal.
Hope this helps let me know if you need further assistance.
I am still following up. Have you been able to resolve the issue?If you have any concerns or questions, please feel free to contact me, I will be glad to help you.Thank you for choosing Infragistics components!