Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1620
Changing Column.DataType to Column.Type: gives following error.................Please advise.....
posted

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")