<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Data Presentation Controls</title><link>http://forums.asp.net/24.aspx</link><description>ASP.NET data-bound controls such as the DataGrid, DataList, GridView, FormView, DetailsView, and Repeater Controls.  &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=23&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Dataset + ObjectDatasource + GridView + ASP.NET 2</title><link>http://forums.asp.net/thread/2818303.aspx</link><pubDate>Thu, 18 Dec 2008 16:58:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2818303</guid><dc:creator>JustWantAnAnswer</dc:creator><author>JustWantAnAnswer</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2818303.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=2818303</wfw:commentRss><description>&lt;p&gt;Well, I didn&amp;#39;t say it, but I did find it.&amp;nbsp; Not that I can do anything with it, it remains stubbornly disabled and greyed out and won&amp;#39;t let me select it.&lt;/p&gt;
&lt;p&gt;The radio button for &amp;quot;two way binding&amp;quot; shows up if you select your gridview in design mode and you have at least one template associated to it.&amp;nbsp; When you select it, you should see a right facing triangle up in the upper right corner, and when you click on that you get a popdown window whose last item is a link titled &amp;quot;edit templates&amp;quot;.&amp;nbsp; So if you have a command&amp;nbsp; column with edit and delete buttons in it, for example, as a template, then that will come up in the new display, and when you mouse over the link for &amp;quot;edit&amp;quot; another triangle will popup and if you click that you&amp;#39;ll get a dialog box that has a (disabled) check box for &amp;quot;Two-way databinding&amp;quot;.&lt;/p&gt;
&lt;p&gt;So that&amp;#39;s where it is, I&amp;#39;d sure be curious to find&amp;nbsp;out what it does and&amp;nbsp;just what all this template business does for us.&lt;/p&gt;
&lt;p&gt;(by the way, you&amp;#39;ll have to back out of this template editing area gracefully:&amp;nbsp; after you close the dialog box, select the right triangle again and select &amp;quot;End Template Editing&amp;quot;.)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Dataset + ObjectDatasource + GridView + ASP.NET 2</title><link>http://forums.asp.net/thread/2814124.aspx</link><pubDate>Wed, 17 Dec 2008 03:06:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2814124</guid><dc:creator>ronald_yoh</dc:creator><author>ronald_yoh</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2814124.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=2814124</wfw:commentRss><description>hey mate.. when you said two-way binding.. what does it mean? where can i find it?&lt;br /&gt;</description></item><item><title>Re: Dataset + ObjectDatasource + GridView + ASP.NET 2</title><link>http://forums.asp.net/thread/2596001.aspx</link><pubDate>Tue, 02 Sep 2008 19:39:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2596001</guid><dc:creator>JustWantAnAnswer</dc:creator><author>JustWantAnAnswer</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2596001.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=2596001</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Eventually, reading through here and several other places, i finally got rid of the parameter mismatch by using point and clickery on my object data source to point directly to my supporting webservice and selecting methods declared there as web methods.&lt;/p&gt;&lt;p&gt;see http://forums.asp.net/p/1310573/2595948.aspx#2595948&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Dataset + ObjectDatasource + GridView + ASP.NET 2</title><link>http://forums.asp.net/thread/2589897.aspx</link><pubDate>Fri, 29 Aug 2008 21:28:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2589897</guid><dc:creator>JustWantAnAnswer</dc:creator><author>JustWantAnAnswer</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2589897.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=2589897</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;d say there is definitely a bug involved here.&amp;nbsp; three years later and still catching people.&amp;nbsp; So I have another variation, though maybe some one has a magic wand for me:&lt;/p&gt;&lt;h2&gt;&lt;i&gt;ObjectDataSource &amp;#39;ObjectDataSource1&amp;#39; could not find a non-generic method 
&amp;#39;UpdateClassInfo&amp;#39; that has parameters: ERRCLASSTYPE, ERRCOUNTY, ERRZIP, 
ERRCLASSROOMHOURS, ERRLIVEFIRING, ERRCHIEFPHONE, ERRNUMMINORITY, 
ERRSTUDENTENDROLLED, ERRSTUDENTCERTIFIED, ERRDESC, ERRDATE, errclsclassid, 
ERRSTUDENTENROLLED.&lt;/i&gt;&lt;/h2&gt;&lt;p&gt;First off, I have no idea where the second errstudentenrolled is coming from.&amp;nbsp; Secondly, I don&amp;#39;t seem to have the tools available that others in this thread have, perhaps because I&amp;#39;m using (have to) a web service to get my data from. It gets the data just fine.&amp;nbsp; I can modify one of the fields and get this error when I click the generated update button.&amp;nbsp; I would just as soon write procedureal field by field code in a regular button handler, but nothing I do there seems able to find the data in these 2005 components (I&amp;#39;ve done it with 2003 components...) I&amp;#39;d love either how to fix this error, or how to find the data in code. Here&amp;#39;s the aspx.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; MasterPageFile=&amp;quot;~/MasterPage.master&amp;quot; AutoEventWireup=&amp;quot;true&amp;quot; CodeBehind=&amp;quot;FixClassErr.aspx.cs&amp;quot; Inherits=&amp;quot;MoHuntEdWebApp.WebForm11&amp;quot; Title=&amp;quot;Untitled Page&amp;quot; %&amp;gt;&lt;br /&gt;&amp;lt;asp:Content ID=&amp;quot;FixClassErr&amp;quot; ContentPlaceHolderID=&amp;quot;ContentPlaceHolder1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;nbsp;&amp;lt;asp:DetailsView ID=&amp;quot;DetailsView1&amp;quot; runat=&amp;quot;server&amp;quot; AutoGenerateDeleteButton=&amp;quot;True&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoGenerateEditButton=&amp;quot;True&amp;quot; DataSourceID=&amp;quot;ObjectDataSource1&amp;quot; DefaultMode=&amp;quot;Edit&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Height=&amp;quot;50px&amp;quot; Width=&amp;quot;125px&amp;quot; DataKeyNames=&amp;quot;errclsclassid&amp;quot; OnItemDeleted=&amp;quot;DetailsView1_ItemDeleted&amp;quot; OnItemInserted=&amp;quot;DetailsView1_ItemInserted&amp;quot; OnItemUpdated=&amp;quot;DetailsView1_ItemUpdated&amp;quot; AutoGenerateRows=&amp;quot;False&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Fields&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:BoundField DataField=&amp;quot;ERRCLSCLASSID&amp;quot; HeaderText=&amp;quot;ERRCLSCLASSID&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:BoundField DataField=&amp;quot;ERRCLASSTYPE&amp;quot; HeaderText=&amp;quot;ERRCLASSTYPE&amp;quot;&amp;nbsp;&amp;nbsp; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:BoundField DataField=&amp;quot;ERRCOUNTY&amp;quot; HeaderText=&amp;quot;ERRCOUNTY&amp;quot;&amp;nbsp; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:BoundField DataField=&amp;quot;ERRZIP&amp;quot; HeaderText=&amp;quot;ERRZIP&amp;quot;&amp;nbsp; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:BoundField DataField=&amp;quot;ERRCLASSROOMHOURS&amp;quot; HeaderText=&amp;quot;ERRCLASSROOMHOURS&amp;quot;&amp;nbsp; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:BoundField DataField=&amp;quot;ERRLIVEFIRING&amp;quot; HeaderText=&amp;quot;ERRLIVEFIRING&amp;quot;&amp;nbsp; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:BoundField DataField=&amp;quot;ERRCHIEFPHONE&amp;quot; HeaderText=&amp;quot;ERRCHIEFPHONE&amp;quot;&amp;nbsp; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:BoundField DataField=&amp;quot;ERRNUMMINORITY&amp;quot; HeaderText=&amp;quot;ERRNUMMINORITY&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:BoundField DataField=&amp;quot;ERRSTUDENTENROLLED&amp;quot; HeaderText=&amp;quot;ERRSTUDENTENROLLED&amp;quot;&amp;nbsp; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:BoundField DataField=&amp;quot;ERRSTUDENTCERTIFIED&amp;quot; HeaderText=&amp;quot;ERRSTUDENTCERTIFIED&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:BoundField DataField=&amp;quot;ERRDESC&amp;quot; HeaderText=&amp;quot;ERRDESC&amp;quot;&amp;nbsp; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:BoundField DataField=&amp;quot;ERRDATE&amp;quot; HeaderText=&amp;quot;ERRDATE&amp;quot;&amp;nbsp; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Fields&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:DetailsView&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ObjectDataSource ID=&amp;quot;ObjectDataSource1&amp;quot; runat=&amp;quot;server&amp;quot; SelectMethod=&amp;quot;GetClassErr&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TypeName=&amp;quot;MoHuntEdWebApp.moHuntEdWebSvc.MoHuntEdWebSvc&amp;quot; OnDeleted=&amp;quot;ObjectDataSource1_Deleted&amp;quot; OnInserted=&amp;quot;ObjectDataSource1_Inserted&amp;quot; OnUpdated=&amp;quot;ObjectDataSource1_Updated&amp;quot; UpdateMethod=&amp;quot;UpdateClassInfo&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SelectParameters&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:QueryStringParameter Name=&amp;quot;primarykeyid&amp;quot; QueryStringField=&amp;quot;key&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/SelectParameters&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;UpdateParameters&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Parameter Direction=&amp;quot;InputOutput&amp;quot; Name=&amp;quot;errclsclassid&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Parameter Name=&amp;quot;ERRCLASSTYPE&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Parameter Name=&amp;quot;ERRCOUNTY&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Parameter Name=&amp;quot;ERRZIP&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Parameter Name=&amp;quot;ERRCLASSROOMHOURS&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Parameter Name=&amp;quot;ERRLIVEFIRING&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Parameter Name=&amp;quot;ERRCHIEFPHONE&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Parameter Name=&amp;quot;ERRNUMMINORITY&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Parameter Name=&amp;quot;ERRSTUDENTENDROLLED&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Parameter Name=&amp;quot;ERRSTUDENTCERTIFIED&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Parameter Name=&amp;quot;ERRDESC&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Parameter Name=&amp;quot;ERRDATE&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/UpdateParameters&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:ObjectDataSource&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Label ID=&amp;quot;lblStatus&amp;quot; runat=&amp;quot;server&amp;quot; Font-Bold=&amp;quot;True&amp;quot; ForeColor=&amp;quot;Red&amp;quot; Visible=&amp;quot;False&amp;quot;&amp;gt;&amp;lt;/asp:Label&amp;gt;&amp;amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Button ID=&amp;quot;btnUpdate&amp;quot; runat=&amp;quot;server&amp;quot; OnClick=&amp;quot;btnUpdate_Click&amp;quot; Text=&amp;quot;Apply Update&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Button ID=&amp;quot;btnDone&amp;quot; runat=&amp;quot;server&amp;quot; OnClick=&amp;quot;btnDone_Click&amp;quot; Text=&amp;quot;Done&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/asp:Content&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Dataset + ObjectDatasource + GridView + ASP.NET 2</title><link>http://forums.asp.net/thread/2099695.aspx</link><pubDate>Wed, 09 Jan 2008 17:24:02 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2099695</guid><dc:creator>1sweetkate</dc:creator><author>1sweetkate</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2099695.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=2099695</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I had this very same issue but on a FormView. I thought I would lose my mind. The fix for me, was to add a DataKeyNames. &lt;/p&gt;&lt;p&gt;&amp;lt;asp:FormView ID=&amp;quot;fvVRS&amp;quot; runat=&amp;quot;server&amp;quot; DataSourceID=&amp;quot;odsVRS&amp;quot; DefaultMode=&amp;quot;Edit&amp;quot;&lt;b&gt; DataKeyNames=&amp;quot;ID&amp;quot;&lt;/b&gt; &amp;gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Only thing I can say that this error was a nightmare, but a great learning tool for this newbie. &amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Dataset + ObjectDatasource + GridView + ASP.NET 2</title><link>http://forums.asp.net/thread/1936364.aspx</link><pubDate>Tue, 02 Oct 2007 09:32:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1936364</guid><dc:creator>RebelChris</dc:creator><author>RebelChris</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1936364.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1936364</wfw:commentRss><description>&lt;p&gt;I have the same problem&lt;/p&gt;&lt;p&gt;&amp;nbsp;But: &lt;/p&gt;&lt;p&gt;My edit and delte functions work great&lt;/p&gt;&lt;p&gt;only the insert funciton on my detailsview doesnt work it first said ObjectDataSource &amp;#39;ObjectDataSource&amp;#39; could not find a non-generic method&amp;nbsp; that has parameters:&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Ive changed the old values paramter and all&lt;/p&gt;&lt;p&gt;but now ive said that id should be read only false and i get this error:&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h2&gt;&lt;i&gt;&lt;i&gt;Column &amp;#39;ProductID&amp;#39; does not allow nulls.&lt;/i&gt;&lt;/i&gt;&lt;/h2&gt;&lt;p&gt;I really dont know what to do now&lt;br /&gt;It&amp;#39;s really neader to insert products.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Dataset + ObjectDatasource + GridView + ASP.NET 2</title><link>http://forums.asp.net/thread/1596971.aspx</link><pubDate>Tue, 27 Feb 2007 16:30:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1596971</guid><dc:creator>CodeDigger</dc:creator><author>CodeDigger</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1596971.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1596971</wfw:commentRss><description>&lt;p&gt;I'm banging my head against the wall with generated datasets and ObjectSource.&lt;/p&gt;&lt;p&gt;What I've found out ill now is, that it will work without any hassle IF all generated SQL statements are generated without the optimistic concurreny option being set.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Strange enough, I hope MS will eventually fix VS2005 &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Dataset + ObjectDatasource + GridView + ASP.NET 2</title><link>http://forums.asp.net/thread/1596606.aspx</link><pubDate>Tue, 27 Feb 2007 12:23:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1596606</guid><dc:creator>JumpinJackFlash</dc:creator><author>JumpinJackFlash</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1596606.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1596606</wfw:commentRss><description>&lt;p&gt;I got this working in a gridview by including the PK (field 'ID' in code below) as an asp:label in&amp;nbsp;any edititemtemplate, adding 2 way databinding, then setting visibility to false so it couldn't be seen. I didn't put an entry in the itemtemplate at all!&amp;nbsp;Obviously this requires at least one templatecolumn in the gridview, but means all other code generated automatically for the gridview/objectdatasource including stored procedures works as is!&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;EditItemTemplate&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;font color=#0000ff size=2&gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;asp&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;Label&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;ID&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="PKLabel"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;runat&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="server"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Text&lt;/font&gt;&lt;font color=#0000ff size=2&gt;='&lt;/font&gt;&lt;font size=2&gt;&amp;lt;%# Bind("ID") %&amp;gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;'&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Visible&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="False" /&amp;gt;&lt;/font&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;...other controls here....&lt;/font&gt;&lt;/p&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#0000ff size=2&gt;
&lt;p&gt;&amp;lt;/&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;EditItemTemplate&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;Cheers,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;Jack &lt;img src="http://forums.asp.net/emoticons/emotion-5.gif" alt="Wink" /&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Dataset + ObjectDatasource + GridView + ASP.NET 2</title><link>http://forums.asp.net/thread/1523287.aspx</link><pubDate>Mon, 08 Jan 2007 21:25:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1523287</guid><dc:creator>greg_white</dc:creator><author>greg_white</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1523287.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1523287</wfw:commentRss><description>&lt;p&gt;I wasnt able to get this working using the above methods but once i changed my primary key from a guid to an int it worked without error!! &lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Dataset + ObjectDatasource + GridView + ASP.NET 2</title><link>http://forums.asp.net/thread/1520768.aspx</link><pubDate>Sat, 06 Jan 2007 00:17:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1520768</guid><dc:creator>ImDaFrEaK</dc:creator><author>ImDaFrEaK</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1520768.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1520768</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you!&amp;nbsp; This is the post that did it for me.&amp;nbsp; However; I had to take one extra step and add a custom UpdateQuery Command to my DataSet.&amp;nbsp; I removed the parameters that weren't given to me in the error.&amp;nbsp; I have spent nearly all day literrally trying to figure this out.&amp;nbsp; I even followed along side step by step one of the how asp.net videos and it still didn't work.&amp;nbsp; Anyways, Got it working now.&amp;nbsp; Thank you.&lt;/p&gt;</description></item><item><title>Re: Dataset + ObjectDatasource + GridView + ASP.NET 2</title><link>http://forums.asp.net/thread/1508175.aspx</link><pubDate>Mon, 25 Dec 2006 15:05:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1508175</guid><dc:creator>pitronot</dc:creator><author>pitronot</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1508175.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1508175</wfw:commentRss><description>&lt;p&gt;This is a mix-n-match of alot of answers i read on the net, some from here, and from other places as well..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Basicaly, from wat I gather, the Primary Key is not sent by the DataGrid, and this causes&amp;nbsp;the error.&lt;/p&gt;
&lt;p&gt;So what i did was a simple workaround.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Lets say the PK is called&amp;nbsp;"ID"&lt;/p&gt;
&lt;p&gt;what i do is simply catch the DataObject_Updating event and add this line:&lt;/p&gt;&lt;font color=#008080 size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size=2&gt;&amp;nbsp;
&lt;p&gt;e.InputParameters.Add(&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;"ID"&lt;/font&gt;&lt;font size=2&gt;, e.InputParameters[&lt;/font&gt;&lt;font color=#800000 size=2&gt;"Original_ID"&lt;/font&gt;&lt;font size=2&gt;]);&lt;/font&gt;
&lt;p&gt;&lt;font size=2&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size=2&gt;and it works. and it's simple.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=2&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size=2&gt;Hope this helps,&lt;br /&gt;Mickey Perlstein&lt;br /&gt;Head of RnD&lt;br /&gt;Interlect ltd.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Dataset + ObjectDatasource + GridView + ASP.NET 2</title><link>http://forums.asp.net/thread/1421037.aspx</link><pubDate>Fri, 06 Oct 2006 20:59:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1421037</guid><dc:creator>Steveorsomethin</dc:creator><author>Steveorsomethin</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1421037.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1421037</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I was also becoming frustrated with this issue and was not willing to implement a workaround.&amp;nbsp;&amp;nbsp; Ultimately I added the Primary Key to the DataKeyNames&amp;nbsp;property of my GridView and it worked flawlessly. The only hitch that I ran accross was that I had to rebuild the Update function in my dataset, then reassociate it with my ObjectDataSource to prevent an error stating that the function could not be found.&amp;nbsp; Hope this helps someone else as well.&lt;/p&gt;</description></item><item><title>Re: Dataset + ObjectDatasource + GridView + ASP.NET 2</title><link>http://forums.asp.net/thread/1410990.aspx</link><pubDate>Wed, 27 Sep 2006 00:34:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1410990</guid><dc:creator>MNF</dc:creator><author>MNF</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1410990.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1410990</wfw:commentRss><description>&lt;p&gt;Brady,&lt;/p&gt;&lt;p&gt;Have you submit your post to &lt;a href="https://connect.microsoft.com/VisualStudio/feedback/"&gt;https://connect.microsoft.com/VisualStudio/feedback/&lt;/a&gt;?&lt;br /&gt;By the way, I wanted to add comment &lt;a href="http://weblogs.asp.net/bradygaster/archive/2006/09/26/How-to-Bloody-Your-Forehead.aspx"&gt;to your blog post&lt;/a&gt;&amp;nbsp;, but&amp;nbsp;&amp;quot;&lt;em&gt;Anonymous comments are disabled&amp;quot;&lt;/em&gt; and I didn&amp;#39;t find how to login&lt;em&gt;.&lt;/em&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Dataset + ObjectDatasource + GridView + ASP.NET 2</title><link>http://forums.asp.net/thread/1410813.aspx</link><pubDate>Tue, 26 Sep 2006 21:10:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1410813</guid><dc:creator>tatochip</dc:creator><author>tatochip</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1410813.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1410813</wfw:commentRss><description>&lt;p&gt;Since so many people seem to have such a huge problem with this I&amp;#39;ve posted a blog post about the reproduction of this problem. Hopefully we&amp;#39;ll see some sort of fix from MS sooner rather than later. &lt;/p&gt;&lt;p&gt;&lt;a href="http://weblogs.asp.net/bradygaster/archive/2006/09/26/How-to-Bloody-Your-Forehead.aspx"&gt;http://weblogs.asp.net/bradygaster/archive/2006/09/26/How-to-Bloody-Your-Forehead.aspx&amp;nbsp;&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Dataset + ObjectDatasource + GridView + ASP.NET 2</title><link>http://forums.asp.net/thread/1386717.aspx</link><pubDate>Fri, 01 Sep 2006 02:56:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1386717</guid><dc:creator>MNF</dc:creator><author>MNF</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1386717.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1386717</wfw:commentRss><description>I&amp;#39;ve &lt;a href="http://geekswithblogs.net/mnf/archive/2006/09/01/89957.aspx" title="posted in my blog " target="_blank"&gt;posted in my blog&lt;/a&gt; the steps to create Update method&amp;nbsp;&amp;nbsp;in DataAdaptor with parameters&amp;nbsp;to satisfy editing of GridView with ObjectDataSource.</description></item></channel></rss>