<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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: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>Comments for Codelicious</title>
	<atom:link href="http://generally.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://generally.wordpress.com</link>
	<description>Let's talk about coding and lots more...</description>
	<lastBuildDate>Thu, 19 Nov 2009 08:47:32 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Datagridview: Get SelectedIndex of DataGridViewComboBoxColumn by sachin kalse</title>
		<link>http://generally.wordpress.com/2007/12/07/datagridview-get-selectedindex-of-datagridviewcomboboxcolumn/#comment-1516</link>
		<dc:creator>sachin kalse</dc:creator>
		<pubDate>Thu, 19 Nov 2009 08:47:32 +0000</pubDate>
		<guid isPermaLink="false">http://generally.wordpress.com/2007/12/07/datagridview-get-selectedindex-of-datagridviewcomboboxcolumn/#comment-1516</guid>
		<description>Hi, 
Thanks for the &quot;life saving&quot; work around.
I am using it further to enable a button which is outside of grid depending 
on the value selected in ComboBoxCell.
The code below works well if I change the values of only one ComboBox, but 
when I try to change values in multiple it fails. 
e.g. to disable the Save button I have to make all ComboBox values = &quot;Select&quot;
which is default value, even after that IsItemSelected method returns &quot;true&quot;

After inserting a break point at
&gt;&gt; if (cell.Value.ToString() != &quot;Select&quot;) 
I still get the last value in Cell which is other than &quot;Select&quot;

	
void comboBox_SelectedIndexChanged(object sender, EventArgs e)
{
   int selectedIndex = ((ComboBox)sender).SelectedIndex;
   //MessageBox.Show(&quot;Selected Index = &quot; + selectedIndex);
   if (selectedIndex &gt; 0)
   {
      btnSave.Enabled = true;
   }
   else
   {
      // check for all rows
      btnSave.Enabled = (IsItemSelected() == true ? true : false);
   }
}

private bool IsItemSelected()
{
   bool isItemSelected = false;
   foreach (DataGridViewRow dgvRows in dgvPending.Rows)
   {
      DataGridViewComboBoxCell cell = (DataGridViewComboBoxCell)dgvRows.Cells[0];
      if (cell != null)
      {
        if (cell.Value.ToString() != &quot;Select&quot;)
        {
            isItemSelected = true;
            break;
        }
      }
    }
    return isItemSelected;
}

Please guide 
Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks for the &#8220;life saving&#8221; work around.<br />
I am using it further to enable a button which is outside of grid depending<br />
on the value selected in ComboBoxCell.<br />
The code below works well if I change the values of only one ComboBox, but<br />
when I try to change values in multiple it fails.<br />
e.g. to disable the Save button I have to make all ComboBox values = &#8220;Select&#8221;<br />
which is default value, even after that IsItemSelected method returns &#8220;true&#8221;</p>
<p>After inserting a break point at<br />
&gt;&gt; if (cell.Value.ToString() != &#8220;Select&#8221;)<br />
I still get the last value in Cell which is other than &#8220;Select&#8221;</p>
<p>void comboBox_SelectedIndexChanged(object sender, EventArgs e)<br />
{<br />
   int selectedIndex = ((ComboBox)sender).SelectedIndex;<br />
   //MessageBox.Show(&#8220;Selected Index = &#8221; + selectedIndex);<br />
   if (selectedIndex &gt; 0)<br />
   {<br />
      btnSave.Enabled = true;<br />
   }<br />
   else<br />
   {<br />
      // check for all rows<br />
      btnSave.Enabled = (IsItemSelected() == true ? true : false);<br />
   }<br />
}</p>
<p>private bool IsItemSelected()<br />
{<br />
   bool isItemSelected = false;<br />
   foreach (DataGridViewRow dgvRows in dgvPending.Rows)<br />
   {<br />
      DataGridViewComboBoxCell cell = (DataGridViewComboBoxCell)dgvRows.Cells[0];<br />
      if (cell != null)<br />
      {<br />
        if (cell.Value.ToString() != &#8220;Select&#8221;)<br />
        {<br />
            isItemSelected = true;<br />
            break;<br />
        }<br />
      }<br />
    }<br />
    return isItemSelected;<br />
}</p>
<p>Please guide<br />
Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Removing items in a list while iterating through it by MaxCulpa</title>
		<link>http://generally.wordpress.com/2007/10/24/removing-items-in-a-list-while-iterating-through-it/#comment-1515</link>
		<dc:creator>MaxCulpa</dc:creator>
		<pubDate>Fri, 13 Nov 2009 21:17:44 +0000</pubDate>
		<guid isPermaLink="false">http://generally.wordpress.com/2007/10/24/removing-items-in-a-list-while-iterating-through-it/#comment-1515</guid>
		<description>Yep, Josh is right.</description>
		<content:encoded><![CDATA[<p>Yep, Josh is right.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Removing items in a list while iterating through it by MaxCulpa</title>
		<link>http://generally.wordpress.com/2007/10/24/removing-items-in-a-list-while-iterating-through-it/#comment-1514</link>
		<dc:creator>MaxCulpa</dc:creator>
		<pubDate>Fri, 13 Nov 2009 21:12:30 +0000</pubDate>
		<guid isPermaLink="false">http://generally.wordpress.com/2007/10/24/removing-items-in-a-list-while-iterating-through-it/#comment-1514</guid>
		<description>All solutions that manually grind though the list with for or while loops are &quot;procedurally oriented&quot;.  You should just use the RemoveAll method provided in the List class.

Example:

    playerShots is a list of Shot objects for a game.  Location is a Point that is a property of a Shot.  The following code removes all shots from the playerShots list that have reached the top of the screen...

 playerShots.RemoveAll(delegate(Shot s)
            {
                return s.Location.Y &lt; 0;
            });

Let C# work for you.</description>
		<content:encoded><![CDATA[<p>All solutions that manually grind though the list with for or while loops are &#8220;procedurally oriented&#8221;.  You should just use the RemoveAll method provided in the List class.</p>
<p>Example:</p>
<p>    playerShots is a list of Shot objects for a game.  Location is a Point that is a property of a Shot.  The following code removes all shots from the playerShots list that have reached the top of the screen&#8230;</p>
<p> playerShots.RemoveAll(delegate(Shot s)<br />
            {<br />
                return s.Location.Y &lt; 0;<br />
            });</p>
<p>Let C# work for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to setup Darwin Streaming Server on Windows by koko</title>
		<link>http://generally.wordpress.com/2007/08/07/how-to-setup-darwin-streaming-server-on-windows/#comment-1513</link>
		<dc:creator>koko</dc:creator>
		<pubDate>Thu, 12 Nov 2009 16:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://generally.wordpress.com/2007/08/07/how-to-setup-darwin-streaming-server-on-windows/#comment-1513</guid>
		<description>Hi, can somebody tell me where i can avail the html code for embedding video files</description>
		<content:encoded><![CDATA[<p>Hi, can somebody tell me where i can avail the html code for embedding video files</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to setup Darwin Streaming Server on Windows by Abood</title>
		<link>http://generally.wordpress.com/2007/08/07/how-to-setup-darwin-streaming-server-on-windows/#comment-1512</link>
		<dc:creator>Abood</dc:creator>
		<pubDate>Mon, 09 Nov 2009 16:30:48 +0000</pubDate>
		<guid isPermaLink="false">http://generally.wordpress.com/2007/08/07/how-to-setup-darwin-streaming-server-on-windows/#comment-1512</guid>
		<description>Hi, I can&#039;t find downloadable Darwin software onto the site for WinXP. Can somebody help me?
Thanks a lot
Abood</description>
		<content:encoded><![CDATA[<p>Hi, I can&#8217;t find downloadable Darwin software onto the site for WinXP. Can somebody help me?<br />
Thanks a lot<br />
Abood</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Removing items in a list while iterating through it by Nick</title>
		<link>http://generally.wordpress.com/2007/10/24/removing-items-in-a-list-while-iterating-through-it/#comment-1511</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Fri, 06 Nov 2009 16:38:13 +0000</pubDate>
		<guid isPermaLink="false">http://generally.wordpress.com/2007/10/24/removing-items-in-a-list-while-iterating-through-it/#comment-1511</guid>
		<description>Holy cow, it&#039;s is just appalling to see so many solutions that reek of disregard to runtime efficiency! Josh has posted a clean and solution. All solutions that include copying, converting to arrays etc are almost as bad as the sort of solutions that PHP and BASIC coders come up with. 

When there are methods already present in the .NET library, *use them*. Just like Josh does. That&#039;s what they&#039;re there for.</description>
		<content:encoded><![CDATA[<p>Holy cow, it&#8217;s is just appalling to see so many solutions that reek of disregard to runtime efficiency! Josh has posted a clean and solution. All solutions that include copying, converting to arrays etc are almost as bad as the sort of solutions that PHP and BASIC coders come up with. </p>
<p>When there are methods already present in the .NET library, *use them*. Just like Josh does. That&#8217;s what they&#8217;re there for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Removing items in a list while iterating through it by Squimball</title>
		<link>http://generally.wordpress.com/2007/10/24/removing-items-in-a-list-while-iterating-through-it/#comment-1510</link>
		<dc:creator>Squimball</dc:creator>
		<pubDate>Wed, 04 Nov 2009 22:22:44 +0000</pubDate>
		<guid isPermaLink="false">http://generally.wordpress.com/2007/10/24/removing-items-in-a-list-while-iterating-through-it/#comment-1510</guid>
		<description>The reverse iteration is just what I needed.  I would&#039;ve never thought of trying that.  Thanks!</description>
		<content:encoded><![CDATA[<p>The reverse iteration is just what I needed.  I would&#8217;ve never thought of trying that.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C#: List of struct by Stephen</title>
		<link>http://generally.wordpress.com/2007/06/21/c-list-of-struct/#comment-1509</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Fri, 30 Oct 2009 21:28:27 +0000</pubDate>
		<guid isPermaLink="false">http://generally.wordpress.com/2007/06/21/c-list-of-struct/#comment-1509</guid>
		<description>MyStruct s = myList[index];
s.MyField = “Foo”;
myList[index] = s;

I realize this discussion is quite old early on, but I would really like to know why the code above works. If the list indexer is just a function that returns a copy of the struct, how can you do myList[index] = s? Aren&#039;t you just assigning s to a temporary copy? Isn&#039;t myList[index] on the left-hand side of the assignment operator just returning a temporary copy of the struct at that index? Or is myList[index] purely a reference when it&#039;s to the left of =?</description>
		<content:encoded><![CDATA[<p>MyStruct s = myList[index];<br />
s.MyField = “Foo”;<br />
myList[index] = s;</p>
<p>I realize this discussion is quite old early on, but I would really like to know why the code above works. If the list indexer is just a function that returns a copy of the struct, how can you do myList[index] = s? Aren&#8217;t you just assigning s to a temporary copy? Isn&#8217;t myList[index] on the left-hand side of the assignment operator just returning a temporary copy of the struct at that index? Or is myList[index] purely a reference when it&#8217;s to the left of =?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Multiple row toolbar in Firefox by iB4m</title>
		<link>http://generally.wordpress.com/2006/08/31/multiple-row-toolbar-in-firefox/#comment-1508</link>
		<dc:creator>iB4m</dc:creator>
		<pubDate>Thu, 29 Oct 2009 05:19:08 +0000</pubDate>
		<guid isPermaLink="false">https://generally.wordpress.com/2006/08/31/multiple-row-toolbar-in-firefox/#comment-1508</guid>
		<description>here the addon :
https://addons.mozilla.org/en-US/firefox/addon/6937?src=api</description>
		<content:encoded><![CDATA[<p>here the addon :<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/6937?src=api" rel="nofollow">https://addons.mozilla.org/en-US/firefox/addon/6937?src=api</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A simple Remoting example in C# by Sachin Tiwari</title>
		<link>http://generally.wordpress.com/2007/05/31/a-simple-remoting-example-in-c/#comment-1507</link>
		<dc:creator>Sachin Tiwari</dc:creator>
		<pubDate>Thu, 22 Oct 2009 21:44:10 +0000</pubDate>
		<guid isPermaLink="false">http://generally.wordpress.com/2007/05/31/a-simple-remoting-example-in-c/#comment-1507</guid>
		<description>I think people are missing the NameSpace thing...........look into that.......

Means look into your code and suggested sample code...........

Hope my this comment will make happy to lot of users who are facing trouble in given sample application.</description>
		<content:encoded><![CDATA[<p>I think people are missing the NameSpace thing&#8230;&#8230;&#8230;..look into that&#8230;&#8230;.</p>
<p>Means look into your code and suggested sample code&#8230;&#8230;&#8230;..</p>
<p>Hope my this comment will make happy to lot of users who are facing trouble in given sample application.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
