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
BandIndex: used in old UltraWebGrid - How to fix in below code for which WebDataGrid
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 197 'Infragistics.Web.UI.GridControls.GridRecord' does not contain a definition for 'BandIndex' and no extension method 'BandIndex' accepting a first argument of type 'Infragistics.Web.UI.GridControls.GridRecord' could be found (are you missing a using directive or an assembly reference?)


Below error is there while fixing the code:

if (e.Row.DataChanged.ToString() != "Added" && Update == "Y")
   {
    foreach (DataRow modDR in dt.Rows)
   {
    int rowID = e.Row.BandIndex;
    if ((modDR[totalCol - 1].ToString() == rowID.ToString() && e.Row.DataChanged.ToString() != "Deleted") || (Int32.Parse(modDR[totalCol - 1].ToString()) == e.Row.Band.Grid.Rows.Count && !rowexists))
   {
     dr = modDR;
     rowexists = true;
   }
     }
   }
Parents Reply Children
No Data