<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Find GridView Column Index With AccessibleHeaderText</title>
	<atom:link href="http://www.victorchen.info/find-gridviews-column-index-with-accessibleheadertext/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.victorchen.info/find-gridviews-column-index-with-accessibleheadertext/</link>
	<description>Weblog of C#, PHP, and HTML programming articles and tutorials</description>
	<pubDate>Wed, 08 Oct 2008 02:53:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: scarrypopple</title>
		<link>http://www.victorchen.info/find-gridviews-column-index-with-accessibleheadertext/#comment-3451</link>
		<dc:creator>scarrypopple</dc:creator>
		<pubDate>Sat, 16 Aug 2008 02:27:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.victorchen.info/find-gridviews-column-index-with-accessibleheadertext/#comment-3451</guid>
		<description>Ho\y He\\!
thenk you so much! I was just getting ready to write about 4,000 lines of code to show and hide coulms in asp.net vb intranet application ive been working on for a NFP when i found your post and i was able to write the whole routine in about 4 lines of code!!! based largly on what you have here. thank you so much!

-Popples 

obvious but simple vb converson

    Private Function GetGridViewColumnIndex(ByVal GridView As GridView, ByVal Column As String)
        Dim Col As Integer

        For Col = 0 To GridView.Columns.Count - 1
            If Column = GridView.Columns.Item(Col).HeaderText Then
                Return Col
                Exit Function
            End If
        Next
        Return -1
    End Function</description>
		<content:encoded><![CDATA[<p>Ho\y He\\!<br />
thenk you so much! I was just getting ready to write about 4,000 lines of code to show and hide coulms in asp.net vb intranet application ive been working on for a NFP when i found your post and i was able to write the whole routine in about 4 lines of code!!! based largly on what you have here. thank you so much!</p>
<p>-Popples </p>
<p>obvious but simple vb converson</p>
<p>    Private Function GetGridViewColumnIndex(ByVal GridView As GridView, ByVal Column As String)<br />
        Dim Col As Integer</p>
<p>        For Col = 0 To GridView.Columns.Count - 1<br />
            If Column = GridView.Columns.Item(Col).HeaderText Then<br />
                Return Col<br />
                Exit Function<br />
            End If<br />
        Next<br />
        Return -1<br />
    End Function</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vyas</title>
		<link>http://www.victorchen.info/find-gridviews-column-index-with-accessibleheadertext/#comment-2576</link>
		<dc:creator>vyas</dc:creator>
		<pubDate>Sun, 20 Jul 2008 07:07:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.victorchen.info/find-gridviews-column-index-with-accessibleheadertext/#comment-2576</guid>
		<description>good</description>
		<content:encoded><![CDATA[<p>good</p>
]]></content:encoded>
	</item>
</channel>
</rss>
