﻿<?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 - Webgrid 7 checkbox at specified row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-7-checkbox-at-specified-row/</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>Webgrid 7 checkbox at specified row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-7-checkbox-at-specified-row/</link><pubDate>Tue, 17 Aug 2010 23:13:36 GMT</pubDate><dc:creator>xin8</dc:creator><category>Webgrid7</category><description>&lt;p&gt;thank you very much Glenn!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;i added your code in client side. It didn't work.&lt;/p&gt;
&lt;p&gt; But then i do it in server side. It is a success!&lt;/p&gt;
&lt;p&gt;Here's the snippet to share:&lt;/p&gt;&lt;pre&gt; Private Sub WebGrid1_PrepareDataBinding(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.DataSourceEventArgs) Handles WebGrid1.PrepareDataBinding
        If Page.IsPostBack = False Then
            WebGrid1.RetrieveStructure()
        End If

        With WebGrid1.RootTable.Columns
            .GetNamedItem("Tick").Width = Unit.Pixel("30")
            .GetNamedItem("Tick").ColumnType = ISNet.WebUI.WebGrid.ColumnType.Custom

        End With
    End Sub&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you again.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;xin8&lt;/p&gt;</description></item><item><title>Webgrid 7 checkbox at specified row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-7-checkbox-at-specified-row/</link><pubDate>Tue, 17 Aug 2010 22:11:39 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>Webgrid7</category><description>&lt;p&gt;In We Grid 7, you will need to set the WebGrid column ColumnType to custom in order to render HTML code. Here is the snippet for the Tick column:&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGridColumn Name="Tick" &lt;span style="color: rgb(255, 0, 0);"&gt;ColumnType="Custom"&lt;/span&gt; Caption=" " Width="30px"&amp;gt;&lt;br /&gt;&amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Webgrid 7 checkbox at specified row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-7-checkbox-at-specified-row/</link><pubDate>Mon, 16 Aug 2010 05:28:25 GMT</pubDate><dc:creator>xin8</dc:creator><category>Webgrid7</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I would like to add checkbox to rows in a table which has the main data.&lt;/p&gt;
&lt;p&gt;previously, the code in InitializeRow event can function well.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;pre&gt; Private Sub WebGrid1_InitializeRow(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.RowEventArgs) Handles WebGrid1.InitializeRow
    &lt;/pre&gt;&lt;pre&gt;    If (e.Row.Cells.GetNamedItem("a_bid").Value = e.Row.Cells.GetNamedItem("bid").Value) Then&lt;/pre&gt;&lt;pre&gt;            e.Row.Cells.GetNamedItem("Tick").Text = "&amp;lt;INPUT type='checkbox' Id='" &amp;amp; e.Row.Cells.GetNamedItem("bid").Value &amp;amp; "' name='" &amp;amp; e.Row.Cells.GetNamedItem("bid").Value &amp;amp; "'  onclick=ChkClick('" &amp;amp; e.Row.Cells.GetNamedItem("bid").Value &amp;amp; "') &amp;gt;"&lt;/pre&gt;&lt;pre&gt;         End If
    End Sub&lt;/pre&gt;

&lt;p&gt; &lt;/p&gt;
&lt;p&gt;but after i upgraded to webgrid 7, the code doesn't function well.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The checkbox column will show&lt;/p&gt;
&lt;p&gt;&amp;lt;INPUT type='checkbox' Id='1234' name='1234' onclick=ChkClick('1234') &amp;gt;&lt;/p&gt;
&lt;p&gt;instead of working like previously which shows checkbox in specified rows.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Do you have any ideas on the cause to the failure of the output?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Waiting for your kind reply.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;xin8&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>