﻿<?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 with 2 Checkboxes</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-with-2-Checkboxes/</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 with 2 Checkboxes</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-with-2-Checkboxes/</link><pubDate>Thu, 15 Nov 2012 21:01:33 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Micahel,&lt;/p&gt;&lt;p&gt;Have you seen Han's sample? I am not sure if his current sample reflects your current condition. So, you better help us by modifying the sample so it can replicate the issue. &lt;br /&gt;Regarding your scenario it should use boolean database that represet as checkbox in grid.&lt;br /&gt;&lt;br /&gt;As you said before, you want to save it into database when clicking a button. So, does that mean that all changes would be saved by using button and no a single process is handled by WebGrid?&lt;/p&gt;
&lt;p&gt;Also, since all the checkboxes changes would be saved into database, then to know how many checkboxes that are checked, then you should handle them by yourselft. Example, by using some queries that would select the rows when the checkboxes field is true/1.&lt;br /&gt;Our GetCheckedRows() method can only be used for IsRowChecker.&lt;br /&gt;&lt;br /&gt;When it comes to RootTable empty after postback in page load, I think there must be something wrong with your binding.&lt;br /&gt;Please confirm how do you do the binding. FYI, the binding should be used in IntializeDataSource instead of PageLoad.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebGrid with 2 Checkboxes</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-with-2-Checkboxes/</link><pubDate>Wed, 14 Nov 2012 10:41:30 GMT</pubDate><dc:creator>mlacy</dc:creator><description>&lt;p&gt;This is still not working for me....what version of the WebGrid are you using?   We are still on Version 6.  Could that be the issue?&lt;/p&gt;</description></item><item><title>WebGrid with 2 Checkboxes</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-with-2-Checkboxes/</link><pubDate>Fri, 05 Oct 2012 00:32:24 GMT</pubDate><dc:creator>Hans</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Basically, the reason why we can’t get the row/data from WebGrid, due to the WebGrid hasn’t load/render the row/data. It doesn’t have relation with the number of checkbox.&lt;br /&gt;&lt;br /&gt;However you could get the data of WebGrid from the button’s OnClick event.&lt;br /&gt;&lt;br /&gt;I made a simple WebGrid sample based on your information.&lt;br /&gt;I bind WebGrid to access data source (Northwind.mdb database and Products table). But I made a little change in the Products table; I add one more (Boolean) column, named Discontinued2.&lt;br /&gt;Now I have WebGrid with two checkboxes column.&lt;br /&gt;&lt;br /&gt;In Button1_Click server side event, I add some code to get the value from Discontinued column and Discontinued2 column.&lt;br /&gt;&lt;br /&gt;Please have review on my sample and please let know your response.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Hans.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGrid with 2 Checkboxes</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-with-2-Checkboxes/</link><pubDate>Thu, 04 Oct 2012 13:55:46 GMT</pubDate><dc:creator>mlacy</dc:creator><description>&lt;p&gt;I have a WebGrid which has two checkbox columns ( so I can't use the DataRowChecker as that is to select a row and only works with one checkbox).  I did the obvious, created 2 columns with ColumnType CheckBox and bound them to my datasource (booleans for each column).  The problem is that when I do a postback (after selecting some of the checkboxes and hitting the Save button), the RootTable is empty (no rows) in the PageLoad event.   Why is the state of the RootTable not posting to the server?!!   In this case, how I am supposed to handle a Save event when there is no way to know what was checked by the user.  Please do not tell me to use IsRowChecker, that is not a solution when you have more than one checkbox.&lt;/p&gt;</description></item></channel></rss>