NullReferenceException when databinding new datasource
New DiscussionI have a simple UltraWebGrid that displays the search results based on several criteria. It is working fine until the user clicks on a header to sort the grid. The grid performed the sort just fine; however, when the user enter new search criteria, an NullReferenceException is generated when calling DataBind on the grid.
uwgResult.DataSource = aDataTable
uwgResult.DataBind <- This call will generate an exception only after user clicks on any header to sort
Could someone tell me what should be the “correct” way of data binding a new data source?
Thanks.
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post