<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>DataGridView Watermark Cell</title><link>http://blogs.msdn.com/winformsue/archive/2008/01/02/datagridview-watermark-cell.aspx</link><description>I returned from my end-of-the-year vacation to find the following reader comment in my inbox: &amp;gt; I am trying to create a custom DGV column that will show a watermark for the empty cells , in the same manner like windows live search box ... any advice?</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: DataGridView Watermark Cell</title><link>http://blogs.msdn.com/winformsue/archive/2008/01/02/datagridview-watermark-cell.aspx#6968703</link><pubDate>Thu, 03 Jan 2008 18:23:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6968703</guid><dc:creator>thies</dc:creator><description>&lt;p&gt;Thank you for this how-to. One comment that may help others. Watch out for SharedRows - they will give you InvalidOperationExceptions when you check for IsInEditMode. To check if the row is being shared, make sure that &amp;quot;this.RowIndex &amp;gt;= 0&amp;quot; in the beginning of the Paint method. (Shared rows have a RowIndex == -1).&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Thies Schrader.&lt;/p&gt;
</description></item><item><title>re: DataGridView Watermark Cell</title><link>http://blogs.msdn.com/winformsue/archive/2008/01/02/datagridview-watermark-cell.aspx#6975536</link><pubDate>Fri, 04 Jan 2008 08:31:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6975536</guid><dc:creator>Karl Erickson</dc:creator><description>&lt;p&gt;Good catch, Thies. Thanks! I updated the text and the code to take shared rows into consideration. The revised if statement enables the watermark to appear for shared rows, including the row for new records. &lt;/p&gt;
&lt;p&gt;-Karl&lt;/p&gt;
</description></item></channel></rss>