{"id":1932,"date":"2022-08-30T15:20:39","date_gmt":"2022-08-30T15:20:39","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/05\/problem-about-aspxgridview-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:20:39","modified_gmt":"2022-08-30T15:20:39","slug":"problem-about-aspxgridview-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-aspxgridview-collection-of-common-programming-errors\/","title":{"rendered":"problem about aspxgridview-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/27f1b1529989513cd8a171a48dac1e5e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAbu Hamzah<br \/>\nasp.net gridview objectdatasource aspxgridview<br \/>\nSystem.NotSupportedException was unhandled by user codeMessage=The data source does not support sorting.Source=namespaceStackTrace:at namespace.Admin.ToolkitScriptManager1_AsyncPostBackError(Object sender, AsyncPostBackErrorEventArgs e) in C:\\project\\Master.cs:line 27at System.Web.UI.ScriptManager.OnAsyncPostBackError(AsyncPostBackErrorEventArgs e)at System.Web.UI.PageRequestManager.OnPageError(Object sender, EventArgs e)at System.Web.UI.TemplateControl.OnError(EventArgs e)at System.Web.UI.Page.<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6d949aded67b85a33f9db68099fed813?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMaxOvrdrv<br \/>\nc# aspxgridview linkbutton<br \/>\nI am about to pull my hair out on this one, and i have no hair left so&#8230; really frustrating.Context: Web Application, running a Custom Composite Control i built myself, that itself has a gridview in it. In the beginning, i had created separate controls for navigation and functionality, that i was rendering in my CControl, including the grid headers, that were a separate entity composed of a table with linkbuttons in the cells, that would allow you to sort the datasource on the gridview.Now the<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9d943833f45695889d9e817cbfbd3921?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1867843<br \/>\nwebforms devexpress aspxgridview<br \/>\nI am pretty new to this, so please bare with me. I am debugging a website built on the WebForms model, using ASP, C# as codebehind, and SQL Express 2008 R2. I am trying to debug a page that uses an ASPxGridView, which is populated from the .aspx file, and the dataset is uses is created there as well. The data is selected using SelectCommand=&#8221;SELECT MachineID, ProgramNo, (CONVERT (VARCHAR(19), Start, 120)) as Start,(CONVERT (VARCHAR(12), Stop,114)) as StopTime, WorkCount, PartCount as TotalWor<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/Ki8RQ.jpg?s=32&amp;g=1\" \/><br \/>\nbigodera<br \/>\nasp.net vb.net error-handling devexpress aspxgridview<br \/>\nI have defined in my web.config a default error page:&lt;customErrors mode=&#8221;On&#8221; defaultRedirect=&#8221;Erro_Padrao.aspx&#8221;&gt; &lt;\/customErrors&gt;Now, I&#8217;m forcing an error in one of my pages to test the error page:TryDim var1 As Integer = 1Dim var2 As Integer = 0Dim result As Integer = var1 \/ var2Catch ex As ExceptionThrow ex End TryThe error occurs but nothing happens.Anyone?Thank you.Edit:I am trying this inside a method that is called by a DevExpress&#8217; ASPxGridView component. The exception message i<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/JVGBj.png?s=32&amp;g=1\" \/><br \/>\nGloria<br \/>\nasp.net vb.net sorting gridview aspxgridview<br \/>\nI have an asp gridview which is connected to my sql database via LINQ. I have it bound in the code behind. I also do the usual,AllowSorting=&#8221;True&#8221;and I set the sort expression for each column: ex- &lt;asp:BoundField DataField=&#8221;BorrowerDateOfBirth&#8221; HeaderText=&#8221;Date Of Birth&#8221; DataFormatString=&#8221;{0:d}&#8221; SortExpression=&#8221;BorrowerDateOfBirth&#8221; &gt;&lt;\/asp:BoundField&gt;But when I run the application, and click the column headers to sort, the application fires an exception error that reads:&#8221;The GridView<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ca6a69698db9c1d2546f880644d1c471?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ndevio<br \/>\ndevexpress undefined aspxgridview<br \/>\nI have a basic 1 table grid. I have a field called Branch type. The branch type can only be Corporate or Franchise. When i click on the edit button on the ASPxgridview row , i would like to display and hide fields on the edit form, depending on what Branch Type it is. So if it is Corporate i would like to Display the Manager field and Hide the Owner field. When the branch type is Franchise then I would like the Owner field to be displayed and the Manager field to be hidden on the edit form. all<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-12-05 05:13:21. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Abu Hamzah asp.net gridview objectdatasource aspxgridview System.NotSupportedException was unhandled by user codeMessage=The data source does not support sorting.Source=namespaceStackTrace:at namespace.Admin.ToolkitScriptManager1_AsyncPostBackError(Object sender, AsyncPostBackErrorEventArgs e) in C:\\project\\Master.cs:line 27at System.Web.UI.ScriptManager.OnAsyncPostBackError(AsyncPostBackErrorEventArgs e)at System.Web.UI.PageRequestManager.OnPageError(Object sender, EventArgs e)at System.Web.UI.TemplateControl.OnError(EventArgs e)at System.Web.UI.Page. MaxOvrdrv c# aspxgridview linkbutton I am about to pull my hair out on this one, and i have no hair left [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1932","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1932"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1932\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}