<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://code.msdn.microsoft.com/rss.xsl"?><rss version="2.0"><channel><title>DynamicTemplateClass Forum Rss Feed</title><link>http://code.msdn.microsoft.com/DynamicTemplateClass/Thread/List.aspx</link><description>DynamicTemplateClass Forum Rss Description</description><item><title>NEW POST: Comments, Questions &amp; Corrections</title><link>http://code.msdn.microsoft.com/DynamicTemplateClass/Thread/View.aspx?ThreadId=271</link><description>&lt;div class="wikidoc"&gt;
When I run this with a dataset of say three columns i get the data back twice, so i end up with two sets of the same data in six columns. Has anyone else had this or does anyone know how i can stop it.&lt;br /&gt; &lt;br /&gt;Thanks&lt;br /&gt;Mick&lt;br /&gt; &lt;br /&gt;Fixed it , i hadn't put the AutoGenerateColumns=&amp;quot;false&amp;quot; in the grid view.&lt;br /&gt; &lt;br /&gt;My next problem is i can't access the gridview headertext property, i want to do some cell level formatting depending on cell values.&lt;br /&gt;can anyone help on this one?&lt;br /&gt; &lt;br /&gt;Mick&lt;br /&gt;
&lt;/div&gt;</description><author>Kampftrinker</author><pubDate>Wed, 04 Feb 2009 14:22:37 GMT</pubDate><guid isPermaLink="false">NEW POST: Comments, Questions &amp; Corrections 20090204P</guid></item><item><title>NEW POST: Comments, Questions &amp; Corrections</title><link>http://code.msdn.microsoft.com/DynamicTemplateClass/Thread/View.aspx?ThreadId=271</link><description>&lt;div class="wikidoc"&gt;
&lt;div class="quote"&gt;
 &lt;br /&gt;beheer25 wrote:&lt;br /&gt;On first load the column gets added fine. But after a postback the column remains empty. I have tried putting the addition of the column in Page&lt;i&gt;Load and in PAge&lt;/i&gt;Init. Both with the same result. All columns of the gridview are added in the same routine, with other columns I have no problem.&lt;br /&gt; &lt;br /&gt;When debugging the code I notice that the &amp;quot;InstantiateIn&amp;quot; routine is not called. I must be doing something wrong, but have not found it yet...&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt; &lt;br /&gt;I ran into the same problem recently. I was able to resolve the issue by moving the code to build the fields and add them to the gridview's columns collection into a separate method which is called from Private Sub GridView1_Init(ByVal sender As Object, ByVal e As EventArgs) Handles GridView1.Init.&lt;br /&gt;
&lt;/div&gt;</description><author>eweilnau</author><pubDate>Wed, 17 Dec 2008 18:03:27 GMT</pubDate><guid isPermaLink="false">NEW POST: Comments, Questions &amp; Corrections 20081217P</guid></item><item><title>NEW POST: Comments, Questions &amp; Corrections</title><link>http://code.msdn.microsoft.com/DynamicTemplateClass/Thread/View.aspx?ThreadId=271</link><description>&lt;div class="wikidoc"&gt;
Hi,&lt;br /&gt; &lt;br /&gt;Nice code, I was working on the same when I read your article. Only I`m trying to use a template column inside an ascx. On first load the column gets added fine. But after a postback the column remains empty. I have tried putting the addition of the column in Page&lt;i&gt;Load and in PAge&lt;/i&gt;Init. Both with the same result. All columns of the gridview are added in the same routine, with other columns I have no problem.&lt;br /&gt; &lt;br /&gt;When debugging the code I notice that the &amp;quot;InstantiateIn&amp;quot; routine is not called. I must be doing something wrong, but have not found it yet...&lt;br /&gt; &lt;br /&gt;Any ideas will be greatly appreciated&lt;br /&gt;
&lt;/div&gt;</description><author>beheer25</author><pubDate>Wed, 06 Aug 2008 12:34:44 GMT</pubDate><guid isPermaLink="false">NEW POST: Comments, Questions &amp; Corrections 20080806P</guid></item><item><title>NEW POST: Comments, Questions &amp; Corrections</title><link>http://code.msdn.microsoft.com/DynamicTemplateClass/Thread/View.aspx?ThreadId=271</link><description>&lt;div class="wikidoc"&gt;
 &lt;br /&gt;&lt;div class="quote"&gt;
 &lt;br /&gt;bjm_psu wrote:&lt;br /&gt;Very nice code.  Thank you.  When do you think you will post the code that will show how to edit, update, delete, and etc?&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt; &lt;br /&gt;Probably by the end of this week. The edits aren't complicated...It's just trying to find time to sit down and code...pretty much when I leave work after coding for 8 hours straight, I don't want to touch a key board until the next day... &lt;br /&gt;
&lt;/div&gt;</description><author>RammoneX</author><pubDate>Thu, 22 May 2008 00:00:45 GMT</pubDate><guid isPermaLink="false">NEW POST: Comments, Questions &amp; Corrections 20080522A</guid></item><item><title>NEW POST: Comments, Questions &amp; Corrections</title><link>http://code.msdn.microsoft.com/DynamicTemplateClass/Thread/View.aspx?ThreadId=271</link><description>&lt;div class="wikidoc"&gt;
Very nice code.  Thank you.  When do you think you will post the code that will show how to edit, update, delete, and etc?&lt;br /&gt;
&lt;/div&gt;</description><author>bjm_psu</author><pubDate>Mon, 19 May 2008 18:49:28 GMT</pubDate><guid isPermaLink="false">NEW POST: Comments, Questions &amp; Corrections 20080519P</guid></item><item><title>NEW POST: Comments, Questions &amp; Corrections</title><link>http://code.msdn.microsoft.com/DynamicTemplateClass/Thread/View.aspx?ThreadId=271</link><description>&lt;div class="wikidoc"&gt;
 &lt;br /&gt;&lt;div class="quote"&gt;
 &lt;br /&gt;bpb2221 wrote:&lt;br /&gt;I am using VS 2005 and cannot open the project. &lt;br /&gt; &lt;br /&gt;
&lt;/div&gt; &lt;br /&gt;I'll try and convert it to 2.0 Framework so that ou may access the code&lt;br /&gt;
&lt;/div&gt;</description><author>RammoneX</author><pubDate>Thu, 08 May 2008 19:27:00 GMT</pubDate><guid isPermaLink="false">NEW POST: Comments, Questions &amp; Corrections 20080508P</guid></item><item><title>NEW POST: Comments, Questions &amp; Corrections</title><link>http://code.msdn.microsoft.com/DynamicTemplateClass/Thread/View.aspx?ThreadId=271</link><description>&lt;div class="wikidoc"&gt;
Hello Romko...&lt;br /&gt; &lt;br /&gt;I'm terribly sorry for getting back to you so late....You probably have figured out a solution...but to answer your question....That error could be as a result of many scenarios...one of which is that your connection string is invalid..If you haven't already, make sure that your connection string has the correct user name, password, server name, database name, etc. Also make sure that it is in the write format...I actually found out that there are numerous ways to writing connectionstrings, depending on where your trying to connect (as in what type of Database) whether it be OLEDB, or a sql kind...u get my drift...&lt;br /&gt; &lt;br /&gt;Also, if your server name housing your database is your local server (as in your Computer), I think your server name would be sqlexpress2005...or something of the sort...I'm not too sure...&lt;br /&gt; &lt;br /&gt;Let me know how it goes... I havent been checking on the page because I was getting no responses at all, but I'll check it frequently as from now...&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>RammoneX</author><pubDate>Thu, 08 May 2008 19:23:52 GMT</pubDate><guid isPermaLink="false">NEW POST: Comments, Questions &amp; Corrections 20080508P</guid></item><item><title>NEW POST: Comments, Questions &amp; Corrections</title><link>http://code.msdn.microsoft.com/DynamicTemplateClass/Thread/View.aspx?ThreadId=271</link><description>&lt;div class="wikidoc"&gt;
I am using VS 2005 and cannot open the project. &lt;br /&gt;
&lt;/div&gt;</description><author>bpb2221</author><pubDate>Fri, 02 May 2008 19:30:27 GMT</pubDate><guid isPermaLink="false">NEW POST: Comments, Questions &amp; Corrections 20080502P</guid></item><item><title>NEW POST: Comments, Questions &amp; Corrections</title><link>http://code.msdn.microsoft.com/DynamicTemplateClass/Thread/View.aspx?ThreadId=271</link><description>&lt;div class="wikidoc"&gt;
Hi Rammone,&lt;br /&gt;The project you posted is very similar to what I am working on.&lt;br /&gt;When I ran you project, I got those messages: 1) There is no source code available for the current location. 2) An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server).&lt;br /&gt;I am using VWD 2008 and SQL 2005 Express. Any suggestion what I am missing here. Thanks.&lt;br /&gt;
&lt;/div&gt;</description><author>Romko</author><pubDate>Fri, 02 May 2008 17:10:50 GMT</pubDate><guid isPermaLink="false">NEW POST: Comments, Questions &amp; Corrections 20080502P</guid></item><item><title>NEW POST: Comments, Questions &amp; Corrections</title><link>http://code.msdn.microsoft.com/DynamicTemplateClass/Thread/View.aspx?ThreadId=271</link><description>&lt;div class="wikidoc"&gt;
Please feel free to comment on the code I have. If you've found more efficient and much better ways of doing this, don't hesitate to share with all. This approach is not a new concept. Infact many other developers have been doing this now (majority in C++ or C#)&lt;br /&gt;
&lt;/div&gt;</description><author>RammoneX</author><pubDate>Thu, 10 Apr 2008 17:09:24 GMT</pubDate><guid isPermaLink="false">NEW POST: Comments, Questions &amp; Corrections 20080410P</guid></item></channel></rss>