﻿<?xml version="1.0" encoding="utf-8"?><rss 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:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Configuraing Grid With Row Lines</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Configuraing-Grid-With-Row-Lines/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Configuraing Grid With Row Lines</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Configuraing-Grid-With-Row-Lines/</link><pubDate>Mon, 27 Jun 2011 03:40:33 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;I tried to reproduce the problem in my local test by creating a simple sample of WebGrid. The grid is bind to “Products” table of Northwind.mdb database. In InitializeLayout server-side event WebGridFormatCondition with following configuration is added.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;protected void&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;WebGrid1_InitializeLayout(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;object&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;sender, ISNet.WebUI.WebGrid.&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #2b91af; font-size: 9pt"&gt;LayoutEventArgs&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;e)
{&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: green; font-size: 9pt"&gt;//specific row&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: #2b91af; font-size: 9pt"&gt;WebGridFormatCondition&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;a =&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;new&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: #2b91af; font-size: 9pt"&gt;WebGridFormatCondition&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;();
    a.Name =&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;"Format3"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;;
    a.ColumnMember =&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;"UnitPrice"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;;
    a.ConditionText =&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;"14"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;;
    a.Operator =&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: #2b91af; font-size: 9pt"&gt;ColumnFilterType&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;.GreaterThan;
    a.FormatStyle.Font.Italic =&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;true&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;;
    a.FormatStyle.Font.Bold =&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;true&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;;
    a.TargetObject =&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: #2b91af; font-size: 9pt"&gt;TargetObjectType&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;.Row;

    WebGrid1.RootTable.FormatConditions.Add(a);
}&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;The format condition configuration uses a simple matching mode where the specified ColumnMember – UnitPrice –; Operator – GreaterThan –; and ConditionText – 14 – match.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;When viewed in browser, rows which has “UnitPrice” greater than 14 are rendered with bold format and italic. The problematic behavior is not reproducible in the attached simple sample.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Please kindly let me know if you have different result.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Configuraing Grid With Row Lines</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Configuraing-Grid-With-Row-Lines/</link><pubDate>Thu, 23 Jun 2011 15:46:48 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Why does the grid crash when we use the built-in operator and condition but works when we use the custom condition for Boolean and Int types?&lt;/p&gt;
&lt;p&gt;If we set a custom condition of "underline=1" this works fine.&lt;/p&gt;
&lt;p&gt;If we set the TargetColumnMember to "underline", set Operator to ColumnFiltertype.EqualTo and set ConditionText to "1" the grid crashes upon rendering which doesn't make any sense.  The same thing happens if we use an Int where the value is other than 0 or 1.  Any ideas?  At least the workaround of using the custom condition text is working right now.&lt;/p&gt;</description></item><item><title>Configuraing Grid With Row Lines</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Configuraing-Grid-With-Row-Lines/</link><pubDate>Wed, 22 Jun 2011 08:51:56 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;I think we have this figured out.  It looks like we can use the row-based conditional formatting to add the border we need based on a hidden value.&lt;/p&gt;
&lt;p&gt;The one thing, during testing, that I noticed is that using a target column to check equal to a string value doesn't seem to work.  We wind up using the custom condition text to set up a formula, e.g.,&lt;/p&gt;&lt;pre&gt;ISNet.WebUI.WebGrid.WebGridFormatCondition fmt = new ISNet.WebUI.WebGrid.WebGridFormatCondition();
fmt.Name = "RowConditional1";
fmt.TargetObject = ISNet.WebUI.WebGrid.TargetObjectType.Row;
fmt.CustomConditionText = "testTargetColumn = 'String Value'";
fmt.Operator = ColumnFilterType.NotSet;
fmt.FormatStyle.BorderSettings.Bottom.Color = System.Drawing.Color.Gray;
fmt.FormatStyle.BorderSettings.Bottom.Style = BorderStyle.Solid;
fmt.FormatStyle.BorderSettings.Bottom.Width = Unit.Pixel(1);
fmt.Enabled = true;

this.RootTable.FormatConditions.Add(fmt);
&lt;/pre&gt;</description></item><item><title>Configuraing Grid With Row Lines</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Configuraing-Grid-With-Row-Lines/</link><pubDate>Tue, 21 Jun 2011 14:23:13 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;We use the grids extensively in our application and only in a few cases do we need to do some manipulation that is a bit out of the norm when it comes to the data.  We have a couple read only grids that we need to configure using a different style row line to separate some data segments.  The Alert column is nicely configured using the conditional formatting, however, without the "diving" lines (see &lt;strong&gt;grid configuration summary.jpg&lt;/strong&gt;) the data would be run together and a bit more difficult to read.&lt;/p&gt;
&lt;p&gt;Our normal grids (see &lt;strong&gt;normal grid.jpg&lt;/strong&gt;), for comparison, are fine because they just process the data which is sortable and all that so no issues there.&lt;/p&gt;
&lt;p&gt;So the question is can we create a configuration where the data is seperated by the darker horizontal lines, that in the image create the 4 sections?  Can conditional formatting be used to format an entire row to have a bottom border of a certain color?  Thank you.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>