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
Band: used in UltraWebGrid, how to handle in 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 380 'Infragistics.Web.UI.GridControls.GridRecord' does not contain a definition for 'Band' and no extension method 'Band' 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.Band.Columns[cnt].Header.Caption == "Updated By" && e.Band.Columns[cnt].DataType == "System.String" && e.Cells[cnt + 1].IsEditable() == false)
    e.Cells[cnt].Value = Context.User.Identity.Name;
else if (e.Band.Columns[cnt].Header.Caption == "Last Update Date" && e.Band.Columns[cnt].DataType == "System.DateTime" && e.Band.Columns[cnt].IsEditable() == false)
    e.Cells[cnt].Value = DateTime.Now;