<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>GridView on Justin Carmony</title>
		<link>https://www.justincarmony.com/tags/gridview/</link>
		<description>Recent content in GridView on Justin Carmony</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Mon, 25 Feb 2008 20:17:22 +0000</lastBuildDate>
		
			<atom:link href="https://www.justincarmony.com/tags/gridview/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>ASP .NET, LINQ, GridViews, and GUID Errors</title>
				<link>https://www.justincarmony.com/2008/02/25/asp-net-linq-gridviews-and-guid-errors/</link>
				<pubDate>Mon, 25 Feb 2008 20:17:22 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/02/25/asp-net-linq-gridviews-and-guid-errors/</guid>
				<description>&lt;p&gt;I found a simple problem today. Here is the deal, there were several times where I had to base a LinqDataSource off a Guid that I would set in the Page_Load(). I created an&amp;lt;asp:HiddenField /&amp;gt; to hold the value so all my DataSources could pull it from the control. The HiddenField control&amp;rsquo;s value is stored as a string, so I would have to convert the guid to a string. After doing this, I was getting the following error:&lt;/p&gt;</description>
			</item>
			<item>
				<title>ASP .NET, GridViews, SqlDataSource, and Guid Parameters</title>
				<link>https://www.justincarmony.com/2008/01/31/asp-net-gridviews-sqldatasource-and-guid-parameters/</link>
				<pubDate>Thu, 31 Jan 2008 21:40:27 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/01/31/asp-net-gridviews-sqldatasource-and-guid-parameters/</guid>
				<description>&lt;p&gt;Another thing I ran into today. I actually ran into it awhile back but since I ran into it again today I&amp;rsquo;d thought I&amp;rsquo;d post on it to help anyone who happens to find it.&lt;/p&gt;&#xA;&lt;h3 id=&#34;problem&#34;&gt;Problem&lt;/h3&gt;&#xA;&lt;p&gt;You have a GridView and a SqlDataSource that takes 1 or more Guids as a Parameter. You use the built in DataSource configuration and it doesn&amp;rsquo;t give any errors. However, when you actually run it and pass the Guid, you get this error:&lt;/p&gt;</description>
			</item>
			<item>
				<title>ASP .NET GridView Access to Data In Code</title>
				<link>https://www.justincarmony.com/2008/01/22/asp-net-gridview-access-to-data-in-code/</link>
				<pubDate>Tue, 22 Jan 2008 16:52:38 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/01/22/asp-net-gridview-access-to-data-in-code/</guid>
				<description>&lt;p&gt;There are situations where you want to gain access to the GridView&amp;rsquo;s DataSet to display extra information outside of the GridView. I found the following code to work the best for me. You can get the information from the DataSource of a GridView by doing the following:&lt;/p&gt;&#xA;&lt;p&gt;DataView dv = (DataView)sdsDataSource.Select(DataSourceSelectArguments.Empty);&#xA;if (dv != null)&#xA;{&#xA;try&#xA;{&#xA;strName = (String)dv.Table.Rows[0][&amp;ldquo;Name&amp;rdquo;];&#xA;}&#xA;catch { strName = &amp;ldquo;N/A&amp;rdquo;; }&#xA;}&lt;/p&gt;&#xA;&lt;p&gt;You should be able to access whatever information you need from the DataView.&lt;/p&gt;</description>
			</item>
			<item>
				<title>ASP .NET 2.0, GridViews, HyperLinkField, and JavaScript</title>
				<link>https://www.justincarmony.com/2008/01/08/asp-net-20-gridviews-hyperlinkfield-and-javascript/</link>
				<pubDate>Tue, 08 Jan 2008 04:34:00 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/01/08/asp-net-20-gridviews-hyperlinkfield-and-javascript/</guid>
				<description>&lt;p&gt;I&amp;rsquo;ve found some interesting notes on ASP .NET&amp;rsquo;s GridView, it&amp;rsquo;s limitations and work arounds. For work I was looking for a way to execute JavaScript from clicking a link on a GridView Cell. An example would be to having a list of transactions and wanting to click a link to update it&amp;rsquo;s details. I noticed that many functions of GridView used &lt;a&gt; tags to execute JavaScript. An example would be:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-html&#34; data-lang=&#34;html&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;a&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;href&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;javascript:myFunction(&amp;#39;variable&amp;#39;);&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt;Link&lt;span class=&#34;p&#34;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;a&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Since I had experience with the HyperLinkField before, I thought I would add a HyperLinkField to my GridView and set the &lt;strong&gt;DataNavigateUrlFields&lt;/strong&gt; to the needed fields and the DataNavigateUrlFormatString to use the fields properly. I was hoping to accomplish it by using the following code, which in turn I found out &lt;em&gt;&lt;strong&gt;this solution does not work:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
