<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>守望轩 &#187; datasource</title>
	<atom:link href="http://www.watch-life.net/tag/datasource/feed" rel="self" type="application/rss+xml" />
	<link>http://www.watch-life.net</link>
	<description>关注IT,审视自我,守望生活, 宁静雅致的小轩馆.</description>
	<lastBuildDate>Tue, 20 Jul 2010 00:46:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>web developer tips (65): 快速创建一个挂接SQL表的GridView</title>
		<link>http://www.watch-life.net/visual-studio/quickly-create-a-gridview-that-is-hooked-up-to-a-sql-table.html</link>
		<comments>http://www.watch-life.net/visual-studio/quickly-create-a-gridview-that-is-hooked-up-to-a-sql-table.html#comments</comments>
		<pubDate>Thu, 19 Nov 2009 02:58:17 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[datasource]]></category>
		<category><![CDATA[gridview]]></category>
		<category><![CDATA[Server Explorer]]></category>
		<category><![CDATA[web developer tips]]></category>
		<category><![CDATA[数据源]]></category>
		<category><![CDATA[服务器资源管理器]]></category>

		<guid isPermaLink="false">http://www.watch-life.net/?p=473</guid>
		<description><![CDATA[原文链接：How to quickly create a GridView that is hooked up to a SQL table?
通常，在一个页面的GridView绑定数据，是添加一个数据源，再通过一个向导挂接到数据源。这里介绍一个更快捷的方法来创建和挂接到数据源的GridView。
http://www.watch-life.net/visual-studio/quickly-create-a-gridview-that-is-hooked-up-to-a-sql-table.html
1、首先，如果没有数据源（datasource），你需要在服务器资源管理器（Server Explorer）添加一个。
2、完成上面一步，展开你想连接的表的节点，并找到想要挂接GridView的表。

3、最后，拖拽选中的表到webform，就这样，立刻会创建一个挂接你选中的表的GridView，就这简单的三步或更少，是不是很快速。



	你可能也会喜欢以下文章：
	
	web developer tips (63): 在web应用项目指定vs开发服务器端口 (0)
	web developer tips (66):输入属性时自动插入引号 (0)
	让GridView中CheckBox列支持FireFox (0)
	web developer tips (67):ASP.net MVC的快捷键列表 (0)
	web developer tips (18):从工具箱粘贴或拖拽控件时进行绝对定位 (0)
	web developer tips (70):使用命令脚本安装IIS7 (2)
	web developer tips (64): 在GridView中转换BoundField为TemplateField (0)
	web developer tips (55):多项目解决方案中设置启动项 (0)


转载请注明作者，出处，以及原始超链接。评论数：0 &#124; 评论这篇文章&#124;关注作者最近动态,欢迎 follow me xjb@twitter.com&#124;联络作者：iamxjb@gmail.com© 2010 守望轩 www.watch-life.net]]></description>
			<content:encoded><![CDATA[<p>原文链接：<a href="http://blogs.msdn.com/webdevelopertips/archive/2009/05/27/tip-65-did-you-know-how-to-quickly-create-a-gridview-that-is-hooked-up-to-a-sql-table.aspx" target="_blank">How to quickly create a GridView that is hooked up to a SQL table?</a></p>
<p>通常，在一个页面的<a href="http://www.watch-life.net/tag/GridView" rel="tag" target="_blank">GridView</a>绑定数据，是添加一个数据源，再通过一个向导挂接到数据源。这里介绍一个更快捷的方法来创建和挂接到数据源的GridView。</p>
<p><a href="http://www.watch-life.net/visual-studio/quickly-create-a-gridview-that-is-hooked-up-to-a-sql-table.html" target="_blank">http://www.watch-life.net/visual-studio/quickly-create-a-gridview-that-is-hooked-up-to-a-sql-table.html</a></p>
<p>1、首先，如果没有数据源（datasource），你需要在服务器资源管理器（Server Explorer）添加一个。<br />
2、完成上面一步，展开你想连接的表的节点，并找到想要挂接GridView的表。<br />
<IMG style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" border=0 alt=DragDrop src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoquicklycreateaGridViewthatishoo_D1BF/DragDrop_thumb.jpg" width=488 height=268 mce_src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoquicklycreateaGridViewthatishoo_D1BF/DragDrop_thumb.jpg"><br />
3、最后，拖拽选中的表到webform，就这样，立刻会创建一个挂接你选中的表的GridView，就这简单的三步或更少，是不是很快速。<br />
<IMG style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" border=0 alt=DragDropComplete src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoquicklycreateaGridViewthatishoo_D1BF/DragDropComplete_thumb.jpg" width=528 height=252 mce_src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.HowtoquicklycreateaGridViewthatishoo_D1BF/DragDropComplete_thumb.jpg"></p>
<p class="akst_link">
</p>
	<h4>你可能也会喜欢以下文章：</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.watch-life.net/visual-studio/specify-a-fixed-port-for-visual-studio-development-server.html" title="web developer tips (63): 在web应用项目指定vs开发服务器端口 (2009-11-15)">web developer tips (63): 在web应用项目指定vs开发服务器端口</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/insert-quotes-values-automatically-while-typing-the-attrib-values.html" title="web developer tips (66):输入属性时自动插入引号 (2009-11-19)">web developer tips (66):输入属性时自动插入引号</a> (0)</li>
	<li><a href="http://www.watch-life.net/aspnet/gridview-checkbox-firefox.html" title="让GridView中CheckBox列支持FireFox (2008-07-08)">让GridView中CheckBox列支持FireFox</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/the-list-of-asp-net-mvc-shortcuts.html" title="web developer tips (67):ASP.net MVC的快捷键列表 (2009-11-24)">web developer tips (67):ASP.net MVC的快捷键列表</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/absolute-position-controls-on-copy-paste-or-drag-drop-from-toolbox.html" title="web developer tips (18):从工具箱粘贴或拖拽控件时进行绝对定位 (2009-07-07)">web developer tips (18):从工具箱粘贴或拖拽控件时进行绝对定位</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/install-iis-7-from-the-command-line.html" title="web developer tips (70):使用命令脚本安装IIS7 (2009-12-04)">web developer tips (70):使用命令脚本安装IIS7</a> (2)</li>
	<li><a href="http://www.watch-life.net/visual-studio/convert-a-gridview-column-from-boundfield-to-templatefield.html" title="web developer tips (64): 在GridView中转换BoundField为TemplateField (2009-11-18)">web developer tips (64): 在GridView中转换BoundField为TemplateField</a> (0)</li>
	<li><a href="http://www.watch-life.net/visual-studio/change-start-up-options-and-instances-of-asp-net-development-server-in-a-multi-project-solution.html" title="web developer tips (55):多项目解决方案中设置启动项 (2009-10-28)">web developer tips (55):多项目解决方案中设置启动项</a> (0)</li>
</ul>

转载请注明作者，出处，以及原始超链接。<br />评论数：0 | <b><a href='http://www.watch-life.net/visual-studio/quickly-create-a-gridview-that-is-hooked-up-to-a-sql-table.html#comment'>评论这篇文章</a></b>|关注作者最近动态,欢迎 follow me <a href='https://twitter.com/xjb' target='_blank'>xjb@twitter.com</a>|联络作者：iamxjb@gmail.com<br/>© 2010 守望轩 <a href='http://www.watch-life.net/visual-studio/quickly-create-a-gridview-that-is-hooked-up-to-a-sql-table.html'>www.watch-life.net</a>]]></content:encoded>
			<wfw:commentRss>http://www.watch-life.net/visual-studio/quickly-create-a-gridview-that-is-hooked-up-to-a-sql-table.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
