Hi All,
I am using infragistics grid in the my application.One colum I have bined using Eval().When I am grouping the columns its showing me the following execptions "databinding methods such as eval(),xpath(), and Bind can only be used in the context of a databound control".
Please help me out
Thanks in advance
Dharmbir
Hi Dharmbir,
Thanks for writing. I was able to reproduce the same problem locally. It seems that if you are manually binding the grid (e.g. not using declarative datasources), you need to bind the grid very early in the page life-cycle in order to avoid the exception you are getting - you need to re-bind the grid in the Page_Init (OnInit event of the Page) event handler. You can also try using the InitializeDataSource event of the grid - it gets automatically called when datasource is needed and my actually be the better solution. Moving my binding code to OnInit solved the problem in my case, hopefully this approach is applicable in your case as well, or you can try InitializeDataSource as well.
You can find a related thread with this and other suggestions that helped here:
http://forums.infragistics.com/forums/p/3026/17064.aspx#17064
I also recommend the following blog post for additional information how databinding in UltraWebGrid works in general:
http://blogs.infragistics.com/blogs/tony_lombardo/archive/2008/01/29/demystifying-infragistics-webgrid-databinding.aspx
Hi Rumen,
Thanks for your help .My problem has been resolved
Regards