<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>My ASP knowledge base &#187; custom server control</title>
	<atom:link href="http://aspknowledgebase.wordpress.com/category/custom-server-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://aspknowledgebase.wordpress.com</link>
	<description></description>
	<lastBuildDate>Fri, 06 Jul 2007 09:18:25 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='aspknowledgebase.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/496cf897ad025d2a902f96c9bacce97c?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>My ASP knowledge base &#187; custom server control</title>
		<link>http://aspknowledgebase.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://aspknowledgebase.wordpress.com/osd.xml" title="My ASP knowledge base" />
		<item>
		<title>Source code custom server control</title>
		<link>http://aspknowledgebase.wordpress.com/2007/07/06/source-code-custom-server-control/</link>
		<comments>http://aspknowledgebase.wordpress.com/2007/07/06/source-code-custom-server-control/#comments</comments>
		<pubDate>Fri, 06 Jul 2007 09:18:25 +0000</pubDate>
		<dc:creator>Jan</dc:creator>
				<category><![CDATA[GridView]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[compositecontrol]]></category>
		<category><![CDATA[custom control]]></category>
		<category><![CDATA[custom server control]]></category>
		<category><![CDATA[designer]]></category>
		<category><![CDATA[smart tags]]></category>

		<guid isPermaLink="false">http://aspknowledgebase.wordpress.com/2007/07/06/source-code-custom-server-control/</guid>
		<description><![CDATA[The article about the custom grid control is finished. The post contains links to multiple page explaining the control and the source code has been added (with an example how to use the control).
Regards, Jan
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aspknowledgebase.wordpress.com&blog=1273383&post=33&subd=aspknowledgebase&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The article about the custom grid control is finished. The post contains links to multiple page explaining the control and the source code has been added (with an example how to use the control).</p>
<p>Regards, Jan</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/aspknowledgebase.wordpress.com/33/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/aspknowledgebase.wordpress.com/33/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aspknowledgebase.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aspknowledgebase.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aspknowledgebase.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aspknowledgebase.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aspknowledgebase.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aspknowledgebase.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aspknowledgebase.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aspknowledgebase.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aspknowledgebase.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aspknowledgebase.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aspknowledgebase.wordpress.com&blog=1273383&post=33&subd=aspknowledgebase&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://aspknowledgebase.wordpress.com/2007/07/06/source-code-custom-server-control/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2704dc16d1ea5d81be83b5a1a76f0e40?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jan</media:title>
		</media:content>
	</item>
		<item>
		<title>Custom Server Control: build your own simple GridView</title>
		<link>http://aspknowledgebase.wordpress.com/2007/06/29/custom-server-control-build-your-own-simple-gridview/</link>
		<comments>http://aspknowledgebase.wordpress.com/2007/06/29/custom-server-control-build-your-own-simple-gridview/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 09:23:02 +0000</pubDate>
		<dc:creator>Jan</dc:creator>
				<category><![CDATA[GridView]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[compositecontrol]]></category>
		<category><![CDATA[custom control]]></category>
		<category><![CDATA[custom server control]]></category>
		<category><![CDATA[designer]]></category>
		<category><![CDATA[smart tags]]></category>

		<guid isPermaLink="false">http://aspknowledgebase.wordpress.com/2007/06/29/custom-server-control-build-your-own-simple-gridview/</guid>
		<description><![CDATA[&#8220;This article consists of several pages describing the definition of a custom grid control. You can create your own controls in two ways:

User Controls (ascx-extention): a small part of a page that will be reused in your web pages.
Custom Server Controls: classes that will generate HTML. Custom Server Controls are compiled into DLL assemblies. 

This [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aspknowledgebase.wordpress.com&blog=1273383&post=16&subd=aspknowledgebase&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>&#8220;This article consists of several pages describing the definition of a custom grid control. You can create your own controls in two ways:</p>
<ul>
<li>User Controls (ascx-extention): a small part of a page that will be reused in your web pages.
<li>Custom Server Controls: classes that will generate HTML. Custom Server Controls are compiled into DLL assemblies. </li>
</ul>
<p>This example describes a Custom Server Control. This gives you total control over the HTML and makes it possible to add the control to your toolbox.</p>
<blockquote>
<p><font face="Arial" color="#989898" size="1"><strong>If you are interested in User Controls, see the following pages for more information:</strong><br /></font><a href="http://www.15seconds.com/issue/020319.htm"><font face="Arial" color="#989898" size="1"><u>http://www.15seconds.com/issue/020319.htm</u></font></a><br /><a href="http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/userctrl/default.aspx"><font face="Arial" color="#989898" size="1"><u>http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/userctrl/default.aspx</u></font></a></p>
</blockquote>
<p>The custom server control described in this article, is a simple databound grid. Easy to add to your web pages, for those cases where you do not need the extended features of the VS2005’s GridView. And you can modify this control to you own wishes.</p>
<blockquote>
<p><font face="Arial" color="#989898" size="1"><strong>This custom grid control is not a templated control. If you are interested in templated custom server controls, please see </strong></font><a href="http://samples.gotdotnet.com/quickstart/aspplus/doc/webctrlauthoring.aspx" target="_blank"><font face="Arial" color="#989898" size="1"><u>http://samples.gotdotnet.com/quickstart/aspplus/doc/webctrlauthoring.aspx</u></font></a><font face="Arial" color="#989898" size="1"><strong> for more information.</strong></font></p>
</blockquote>
<p><font face="Arial" color="#989898" size="1"></font>The custom grid control looks like this:</p>
<p><img alt="Custom Grid Control" src="http://aspknowledgebase.files.wordpress.com/2007/06/customgridcontrol.png"></p>
<p>You can add the control by adding a reference in your web page and define the grid&#8217;s parameters:</p>
<p class="MsoNormal"><span style="font-size:8pt;background:yellow;font-family:'Courier New';">&lt;%</span><span style="font-size:8pt;color:blue;font-family:'Courier New';">@</span><span style="font-size:8pt;font-family:'Courier New';"> <span style="color:#a31515;">Register</span> <span style="color:red;">Assembly</span><span style="color:blue;">=&#8221;WITControlsLibrary&#8221;</span> <span style="color:red;">Namespace</span><span style="color:blue;">=&#8221;WITControlsLibrary&#8221;</span> <span style="color:red;">TagPrefix</span><span style="color:blue;">=&#8221;wit&#8221;</span> <span style="background:yellow;">%&gt;<br /></span></span><span style="font-size:8pt;"><br /></span><span style="font-size:8pt;color:blue;font-family:'Courier New';">&lt;</span><span style="font-size:8pt;color:#a31515;font-family:'Courier New';">wit</span><span style="font-size:8pt;color:blue;font-family:'Courier New';">:</span><span style="font-size:8pt;color:#a31515;font-family:'Courier New';">WITGrid</span><span style="font-size:8pt;font-family:'Courier New';"> <span style="color:red;">ID</span><span style="color:blue;">=&#8221;WITGridExample&#8221;</span> <span style="color:red;">runat</span><span style="color:blue;">=&#8221;server&#8221;</span> <br /><span>&nbsp;&nbsp;&nbsp; </span><span style="color:red;">DataSourceID</span><span style="color:blue;">=&#8221;AccessDataSource1&#8243;<br /></span><span>&nbsp;&nbsp;&nbsp; </span><span style="color:red;">DataKeyName</span><span style="color:blue;">=&#8221;participantID&#8221;</span> <br /><span>&nbsp;&nbsp;&nbsp; </span><span style="color:red;">ShowDeleteColumn</span><span style="color:blue;">=&#8221;True&#8221;</span> <br /><span>&nbsp;&nbsp;&nbsp; </span><span style="color:red;">ShowEditColumn</span><span style="color:blue;">=&#8221;True&#8221;</span> <br /><span>&nbsp;&nbsp;&nbsp; </span><span style="color:red;">ShowOrderColumn</span><span style="color:blue;">=&#8221;True&#8221;<br /></span><span>&nbsp;&nbsp;&nbsp; </span><span style="color:red;">HighLightSelectedRow</span><span style="color:blue;">=&#8221;true&#8221;<br /></span><span>&nbsp;&nbsp;&nbsp; </span><span style="color:red;">HighLightCssClass</span><span style="color:blue;">=&#8221;GridView-Highlight&#8221;<br /></span><span>&nbsp;&nbsp;&nbsp; </span><span style="color:red;">EmptyGridCssClass</span><span style="color:blue;">=&#8221;GridView-Empty&#8221;<br /></span><span>&nbsp;&nbsp;&nbsp; </span><span style="color:red;">NoRecordsText</span><span style="color:blue;">=&#8221;No records where found.&#8221;</span> <br /><span>&nbsp;&nbsp;&nbsp; </span><span style="color:red;">EnableViewState</span><span style="color:blue;">=&#8221;False&#8221;<br /></span><span>&nbsp;&nbsp;&nbsp; </span><span style="color:red;">OnRowDataBound</span><span style="color:blue;">=&#8221;gridExample_OnRowDataBound&#8221;<br /></span><span>&nbsp;&nbsp;&nbsp; </span><span style="color:red;">OnRowCommand</span><span style="color:blue;">=&#8221;gridExample_OnRowCommand&#8221;&gt;<br /></span><span>&nbsp;&nbsp;&nbsp; </span><span style="color:blue;">&lt;</span><span style="color:#a31515;">wit</span><span style="color:blue;">:</span><span style="color:#a31515;">BoundField</span> <span style="color:red;">CssClass</span><span style="color:blue;">=&#8221;grid-column-max&#8221;</span> <span style="color:red;">DataField</span><span style="color:blue;">=&#8221;participantName&#8221;</span> <span style="color:red;">HeaderText</span><span style="color:blue;">=&#8221;Name&#8221;</span> <span style="color:blue;">/&gt;<br /></span><span>&nbsp;&nbsp;&nbsp; </span><span style="color:blue;">&lt;</span><span style="color:#a31515;">wit</span><span style="color:blue;">:</span><span style="color:#a31515;">BoundField</span> <span style="color:red;">CssClass</span><span style="color:blue;">=&#8221;grid-column-medium&#8221;</span> <span style="color:red;">DataField</span><span style="color:blue;">=&#8221;participantEMail&#8221;</span> <span style="color:red;">HeaderText</span><span style="color:blue;">=&#8221;E-mail&#8221;</span> <span style="color:blue;">/&gt;<br /></span><span>&nbsp;&nbsp;&nbsp; </span><span style="color:blue;">&lt;</span><span style="color:#a31515;">wit</span><span style="color:blue;">:</span><span style="color:#a31515;">CheckBoxField</span> <span style="color:red;">CssClass</span><span style="color:blue;">=&#8221;grid-column-medium&#8221;</span> <span style="color:red;">DataField</span><span style="color:blue;">=&#8221;participantLocked&#8221;</span> <span style="color:red;">HeaderText</span><span style="color:blue;">=&#8221;Locked&#8221;</span> <span style="color:blue;">/&gt;<br />&lt;/</span><span style="color:#a31515;">wit</span><span style="color:blue;">:</span><span style="color:#a31515;">WITGrid</span><span style="color:blue;">&gt;</span></span><span style="font-size:8pt;"></p>
<p></span></p>
<p></span></p>
<p>The article is split up into different pages in order to avoid one very lengthy page. Click on one of the following items for more info, or click <a href="http://aspknowledgebase.wordpress.com/15/starting-the-project/">Next Page &gt;&gt;</a>&nbsp; </p>
<p>I hope these articles will help you further in building your own grid. </p>
<p>Regards, Jan </p>
<div style="border-right:#c0c0c0 1px solid;border-top:#c0c0c0 1px solid;border-left:#c0c0c0 1px solid;border-bottom:#c0c0c0 1px solid;background-color:#ffffe0;">
<ol>
<li><a href="http://aspknowledgebase.wordpress.com/15/starting-the-project/">Getting started: adding the right resources, references and assembly information.</a>
<li><a href="http://aspknowledgebase.wordpress.com/15/designing-the-inner-elements/">Designing the ‘inner’ elements of the grid (the data columns: BoundField.cs, CheckBoxField.cs, etc.).</a>
<li><a href="http://aspknowledgebase.wordpress.com/15/the-grid-class-itself/">The grid control itself (WITGrid.cs).</a>
<li><a href="http://aspknowledgebase.wordpress.com/15/the-grids-event-arguments/">The grid&#8217;s event arguments.</a>
<li><a href="http://aspknowledgebase.wordpress.com/15/the-grids-designer-class/">The designer class (WITGridDesigner) that enables the grid to be shown in web page’s design view.</a>
<li><a href="http://aspknowledgebase.wordpress.com/15/addign-smart-tags/">Adding smart tags: the designer action list class.</a>
<li>Add the control to your web page: <a href="http://aspknowledgebase.wordpress.com/15/custom-grid-add-to-your-web-page/">The grid&#8217;s parameters and events explained.</a>
<li><font color="#ff0000"><font color="#000000"><a href="http://aspknowledgebase.wordpress.com/15/custom-grid-control-source-code/">The source code of the control and an example</a></font><br /></font></li>
</ol>
</div>
<table cellpadding="0" width="100%" border="0">
<tbody>
<tr>
<td style="text-align:left;">&nbsp;</td>
<td style="text-align:right;"><a href="http://aspknowledgebase.wordpress.com/15/starting-the-project/"><u>Next Page &gt;&gt;</u></a></td>
</tr>
</tbody>
</table>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/aspknowledgebase.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/aspknowledgebase.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aspknowledgebase.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aspknowledgebase.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aspknowledgebase.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aspknowledgebase.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aspknowledgebase.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aspknowledgebase.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aspknowledgebase.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aspknowledgebase.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aspknowledgebase.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aspknowledgebase.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aspknowledgebase.wordpress.com&blog=1273383&post=16&subd=aspknowledgebase&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://aspknowledgebase.wordpress.com/2007/06/29/custom-server-control-build-your-own-simple-gridview/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2704dc16d1ea5d81be83b5a1a76f0e40?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jan</media:title>
		</media:content>

		<media:content url="http://aspknowledgebase.files.wordpress.com/2007/06/customgridcontrol.png" medium="image">
			<media:title type="html">Custom Grid Control</media:title>
		</media:content>
	</item>
	</channel>
</rss>