<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: [ASP.net+VB] การทำ Select All / Unselect All ใน GridView</title>
	<atom:link href="http://minib0x.com/blog/2009/04/aspnetvb-select-all-gridview/feed/" rel="self" type="application/rss+xml" />
	<link>http://minib0x.com/blog/2009/04/aspnetvb-select-all-gridview/</link>
	<description>minib0x: more than a box</description>
	<lastBuildDate>Tue, 17 Jan 2012 06:00:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Joey</title>
		<link>http://minib0x.com/blog/2009/04/aspnetvb-select-all-gridview/comment-page-1/#comment-4093</link>
		<dc:creator>Joey</dc:creator>
		<pubDate>Tue, 17 Jan 2012 06:00:17 +0000</pubDate>
		<guid isPermaLink="false">http://minib0x.com/blog/?p=601#comment-4093</guid>
		<description>asp:CheckBox ID=&quot;cbHeader&quot; runat=&quot;server&quot; AutoPostBack=&quot;True&quot; OnCheckedChanged=&quot;chkSelectAll_CheckedChanged&quot;</description>
		<content:encoded><![CDATA[<p>asp:CheckBox ID=&#8221;cbHeader&#8221; runat=&#8221;server&#8221; AutoPostBack=&#8221;True&#8221; OnCheckedChanged=&#8221;chkSelectAll_CheckedChanged&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joey</title>
		<link>http://minib0x.com/blog/2009/04/aspnetvb-select-all-gridview/comment-page-1/#comment-4092</link>
		<dc:creator>Joey</dc:creator>
		<pubDate>Tue, 17 Jan 2012 05:59:39 +0000</pubDate>
		<guid isPermaLink="false">http://minib0x.com/blog/?p=601#comment-4092</guid>
		<description>1:
2:      
3:                 
4:      
5:      
6:                  
7:      
8:</description>
		<content:encoded><![CDATA[<p>1:<br />
2:<br />
3:<br />
4:<br />
5:<br />
6:<br />
7:<br />
8:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joey</title>
		<link>http://minib0x.com/blog/2009/04/aspnetvb-select-all-gridview/comment-page-1/#comment-4091</link>
		<dc:creator>Joey</dc:creator>
		<pubDate>Tue, 17 Jan 2012 05:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://minib0x.com/blog/?p=601#comment-4091</guid>
		<description>
                
                    
                
                
                    
                
            </description>
		<content:encoded><![CDATA[]]></content:encoded>
	</item>
	<item>
		<title>By: Joey</title>
		<link>http://minib0x.com/blog/2009/04/aspnetvb-select-all-gridview/comment-page-1/#comment-4090</link>
		<dc:creator>Joey</dc:creator>
		<pubDate>Tue, 17 Jan 2012 05:57:01 +0000</pubDate>
		<guid isPermaLink="false">http://minib0x.com/blog/?p=601#comment-4090</guid>
		<description>
                
                    
                
                
                    
                
            



Protected Sub chkSelectAll_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs)
        Dim cbHeader As CheckBox = DirectCast(gvApproveForm.HeaderRow.FindControl(&quot;cbHeader&quot;), CheckBox)

        If cbHeader.Checked = True Then
            For Each gvRow As GridViewRow In gvApproveForm.Rows
                Dim cbItem As CheckBox = DirectCast(gvRow.FindControl(&quot;cbItem&quot;), CheckBox)
                cbItem.Checked = True
            Next
        Else
            For Each gvRow As GridViewRow In gvApproveForm.Rows
                Dim cbItem As CheckBox = DirectCast(gvRow.FindControl(&quot;cbItem&quot;), CheckBox)
                cbItem.Checked = False
            Next
        End If
    End Sub</description>
		<content:encoded><![CDATA[<p>Protected Sub chkSelectAll_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs)<br />
        Dim cbHeader As CheckBox = DirectCast(gvApproveForm.HeaderRow.FindControl(&#8220;cbHeader&#8221;), CheckBox)</p>
<p>        If cbHeader.Checked = True Then<br />
            For Each gvRow As GridViewRow In gvApproveForm.Rows<br />
                Dim cbItem As CheckBox = DirectCast(gvRow.FindControl(&#8220;cbItem&#8221;), CheckBox)<br />
                cbItem.Checked = True<br />
            Next<br />
        Else<br />
            For Each gvRow As GridViewRow In gvApproveForm.Rows<br />
                Dim cbItem As CheckBox = DirectCast(gvRow.FindControl(&#8220;cbItem&#8221;), CheckBox)<br />
                cbItem.Checked = False<br />
            Next<br />
        End If<br />
    End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abuzzy-</title>
		<link>http://minib0x.com/blog/2009/04/aspnetvb-select-all-gridview/comment-page-1/#comment-3128</link>
		<dc:creator>abuzzy-</dc:creator>
		<pubDate>Wed, 09 Nov 2011 03:15:04 +0000</pubDate>
		<guid isPermaLink="false">http://minib0x.com/blog/?p=601#comment-3128</guid>
		<description>thkkkkk alot</description>
		<content:encoded><![CDATA[<p>thkkkkk alot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MarzKiiz</title>
		<link>http://minib0x.com/blog/2009/04/aspnetvb-select-all-gridview/comment-page-1/#comment-1156</link>
		<dc:creator>MarzKiiz</dc:creator>
		<pubDate>Thu, 25 Nov 2010 17:20:46 +0000</pubDate>
		<guid isPermaLink="false">http://minib0x.com/blog/?p=601#comment-1156</guid>
		<description>มันขึ้น error ตรงโค้ดนี้อ่าค่ะ gvTransfer.Rows(i) หมายความว่าไงหรอค่ะ

แร้วจะแก้ไขยังงัย????


ขอบคุณล่วงหน้าค่ะ</description>
		<content:encoded><![CDATA[<p>มันขึ้น error ตรงโค้ดนี้อ่าค่ะ gvTransfer.Rows(i) หมายความว่าไงหรอค่ะ</p>
<p>แร้วจะแก้ไขยังงัย????</p>
<p>ขอบคุณล่วงหน้าค่ะ</p>
]]></content:encoded>
	</item>
</channel>
</rss>

