<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/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>Silverlight Controls and Silverlight Toolkit</title><link>http://forums.silverlight.net/forums/35.aspx</link><description>Discussions around using and developing Silverlight controls and the Silverlight Toolkit</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Checkbox event in datagrid cannot be detected..</title><link>http://forums.silverlight.net/forums/thread/245026.aspx</link><pubDate>Thu, 09 Jul 2009 06:29:03 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:245026</guid><dc:creator>koyot3</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/245026.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=245026</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I guess your datagrid is binding with a List, an ObservableCollection or something else.&lt;/p&gt;&lt;p&gt;Check&lt;a href="http://blogs.msdn.com/scmorris/archive/2008/03/21/using-the-silverlight-datagrid.aspx"&gt; this link&lt;/a&gt; to help you to understand the binding / datagrid.&lt;/p&gt;&lt;p&gt;Your collection (your list) contains a lot of objects. You must work with your collection and not with your datagrid itemsource. When you modify your collection, the datagrid is updating with binding....&lt;/p&gt;&lt;p&gt;&amp;nbsp;For your checkcolumn, use the &lt;b&gt;IsEnabled&amp;nbsp; &lt;/b&gt;property to lock this control....&lt;/p&gt;&lt;p&gt;The property IsChecked need a boolean value for the binding (true = check, false=uncheck)&lt;/p&gt;&lt;p&gt;for example, I create a class Class1.cs with two properties :&lt;/p&gt;&lt;p&gt;public string Name {get; set;}&lt;/p&gt;&lt;p&gt;public bool Answer {get; set;}&lt;/p&gt;&lt;p&gt;After, in my Page.xaml.cs, I create a lot of objet from Class1.cs like Class1 obj1 = new&amp;nbsp; Class1(), Class1 obj2 = new&amp;nbsp; Class1(),....&lt;/p&gt;&lt;p&gt;I add objects to a collection like ObservableCollection&amp;lt;Class1&amp;gt; mycollect; mycollect.Add(obj1).......&lt;/p&gt;&lt;p&gt;I bind this collection to my datagrid with itemsources and you can found in my xaml&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt; &amp;lt;&lt;span class="tag"&gt;data:DataGridTemplateColumn&lt;/span&gt;&lt;span class="attr"&gt; Header=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Name&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Width=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;300&amp;quot;&lt;/span&gt;&amp;gt;
      &amp;lt;&lt;span class="tag"&gt;data:DataGridTemplateColumn.CellTemplate&lt;/span&gt;&amp;gt;
           &amp;lt;&lt;span class="tag"&gt;DataTemplate&lt;/span&gt;&amp;gt;
           &amp;lt;&lt;span class="tag"&gt;TextBlock&lt;/span&gt;&lt;span class="attr"&gt; Text=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding Name}&amp;quot;&lt;/span&gt; /&amp;gt;
           &amp;lt;/&lt;span class="tag"&gt;DataTemplate&lt;/span&gt;&amp;gt;
       &amp;lt;/&lt;span class="tag"&gt;data:DataGridTemplateColumn.CellTemplate&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="tag"&gt;data:DataGridTemplateColumn&lt;/span&gt;&amp;gt;

  &amp;lt;&lt;span class="tag"&gt;data:DataGridTemplateColumn&lt;/span&gt;&lt;span class="attr"&gt; Header=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Answer&amp;quot;&lt;/span&gt;&amp;gt;
       &amp;lt;&lt;span class="tag"&gt;data:DataGridTemplateColumn.CellTemplate&lt;/span&gt;&amp;gt;
            &amp;lt;&lt;span class="tag"&gt;DataTemplate&lt;/span&gt;&amp;gt;
            &amp;lt;&lt;span class="tag"&gt;CheckBox&lt;/span&gt;&lt;span class="attr"&gt;  IsChecked=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding Answer}&amp;quot;&lt;/span&gt; /&amp;gt;                        
            &amp;lt;/&lt;span class="tag"&gt;DataTemplate&lt;/span&gt;&amp;gt;
       &amp;lt;/&lt;span class="tag"&gt;data:DataGridTemplateColumn.CellTemplate&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="tag"&gt;data:DataGridTemplateColumn&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp; hope this help you. Let me know if you have any problem with my code. It may be a little different in VB.Net (i&amp;#39;m using C#)&lt;/p&gt;&lt;p&gt;Johan&lt;/p&gt;&lt;p&gt;---------&lt;/p&gt;&lt;p&gt;Please mark as answer if it help &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Checkbox event in datagrid cannot be detected..</title><link>http://forums.silverlight.net/forums/thread/244946.aspx</link><pubDate>Thu, 09 Jul 2009 02:28:43 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:244946</guid><dc:creator>slen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/244946.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=244946</wfw:commentRss><description>&lt;p&gt;How do I bind a property of IsChecked?&lt;/p&gt;&lt;p&gt;Do I write myown IsChecked function for DataGridCheckBoxColumn?&amp;nbsp;&lt;/p&gt;&lt;p&gt;There isn&amp;#39;t any readOnly attribute in DataGridCheckBoxColumn? &lt;/p&gt;&lt;p&gt;&amp;nbsp;What is the Collection you mean there? I believe it is the datagrid, is it? &lt;/p&gt;&lt;p&gt;For Each item As Object In theDataGrid.ItemsSource&lt;/p&gt;&lt;p&gt;Next &lt;/p&gt;&lt;p&gt;I don&amp;#39;t find any ObjectType in VB and I cannot convert the item to checkbox.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;just be patient ... I&amp;#39;m really not familiar with the whole idea here... sometimes, feeling bad to post so many questions , but I really want to explore the possibility to what I can do in silverlight ...&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Checkbox event in datagrid cannot be detected..</title><link>http://forums.silverlight.net/forums/thread/244469.aspx</link><pubDate>Wed, 08 Jul 2009 09:46:15 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:244469</guid><dc:creator>koyot3</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/244469.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=244469</wfw:commentRss><description>&lt;p&gt;add a property IsChecked in your object which your are using in your projet....&lt;/p&gt;&lt;p&gt;when you create objects, set this property to false if ID is bad and true if it&amp;#39;s correct !&lt;/p&gt;&lt;p&gt;Bind this property (IsChecked) to your datacheckboxcolumn... when user want to delete all the row wich are checked&lt;/p&gt;&lt;p&gt;foreach (ObjectType item in YourCollection)&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;&amp;nbsp;if (item.Ischecked) //add your action&lt;br /&gt;&lt;/p&gt;&lt;p&gt;} &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Checkbox event in datagrid cannot be detected..</title><link>http://forums.silverlight.net/forums/thread/244460.aspx</link><pubDate>Wed, 08 Jul 2009 09:25:10 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:244460</guid><dc:creator>slen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/244460.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=244460</wfw:commentRss><description>&lt;p&gt;Thanks for the code. Sorry It didn&amp;#39;t work for me though, but it definitely helps me in another thing somedays.&amp;nbsp;&lt;/p&gt;&lt;p&gt; Maybe I am not being clear enough. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;if I am using the following code,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:DataGridCheckBoxColumn Binding=&amp;quot;{Binding id, Converter={StaticResource BoolConvertor}, Mode=TwoWay}&amp;quot; CellStyle=&amp;quot;{StaticResource newCellStyle}&amp;quot;/&amp;gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;All the checkboxes were checked when first loaded.. &lt;/p&gt;&lt;p&gt;If I used the cell template, the uncheck and check event are not being called. .. (not sure why it is ) &lt;br /&gt;&lt;/p&gt;&lt;p style="font-style:italic;"&gt;&amp;nbsp;Actually, I want something that when I check the boxes of the grid, I will then determine to do something for it, for example delete. I would like to know how do I know which of the checkboxes is/are checked before the action delete comes to action. I want the user able to check and uncheck the checkboxes before any action is taken in place. &lt;/p&gt;&lt;p&gt;I don&amp;#39;t know which way to solve this problem. &lt;/p&gt;&lt;p&gt;Any idea/thought is welcomed .. maybe there are things I missing or have never thought about&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Checkbox event in datagrid cannot be detected..</title><link>http://forums.silverlight.net/forums/thread/244377.aspx</link><pubDate>Wed, 08 Jul 2009 06:31:05 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:244377</guid><dc:creator>koyot3</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/244377.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=244377</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;ok slen so I&amp;#39;m going to explain more&amp;nbsp;&lt;img src="http://silverlight.net/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;/p&gt;&lt;p&gt;create a class ConvertCheckbox.cs in your projet&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;  &lt;span class="kwd"&gt;public class&lt;/span&gt; ConvertCheckbox : IValueConverter
    {
        &lt;span class="kwd"&gt;public object&lt;/span&gt; Convert(&lt;span class="kwd"&gt;object value&lt;/span&gt;, Type targetType, &lt;span class="kwd"&gt;object&lt;/span&gt; parameter, System.Globalization.CultureInfo culture)
        {
            &lt;span class="kwd"&gt;int&lt;/span&gt; myValue = (&lt;span class="kwd"&gt;int&lt;/span&gt;)&lt;span class="kwd"&gt;value&lt;/span&gt;;
            
            &lt;span class="kwd"&gt;if&lt;/span&gt; (myValue &amp;gt;0)
            {
                &lt;span class="kwd"&gt;return false&lt;/span&gt;;
            }
            &lt;span class="kwd"&gt;else&lt;/span&gt;
            {
                &lt;span class="kwd"&gt;return true&lt;/span&gt;;
            }
            
        }

        &lt;span class="kwd"&gt;public object&lt;/span&gt; ConvertBack(&lt;span class="kwd"&gt;object value&lt;/span&gt;, Type targetType, &lt;span class="kwd"&gt;object&lt;/span&gt; parameter, System.Globalization.CultureInfo culture)
        {
            &lt;span class="kwd"&gt;throw new&lt;/span&gt; NotImplementedException();
        }
    }&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;add this reference to your xaml  xmlns:convert=&amp;quot;clr-namespace:ProjectName.ConvertCheckbox&amp;quot; &lt;/pre&gt;&lt;pre class="coloredcode"&gt;and  &amp;lt;UserControl.Resources&amp;gt;&lt;br /&gt;        &amp;lt;convert:ConvertCheckbox x:Key=&amp;quot;modifCheckBox&amp;quot;/&amp;gt;&lt;br /&gt;    &amp;lt;/UserControl.Resources&amp;gt; &lt;br /&gt;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;so next in your datagrid :&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;lt;data:DataGrid.Columns&amp;gt;&lt;br /&gt;                                    &amp;lt;data:DataGridCheckBoxColumn Header=&amp;quot;ColumnName&amp;quot;  Binding=&amp;quot;{Binding ID, Converter={StaticResource modifCheckBox}}&amp;quot;/&amp;gt; &lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;hope this help you !!&lt;/pre&gt;&lt;pre class="coloredcode"&gt;Johan &lt;br /&gt;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;-----&lt;/pre&gt;&lt;pre class="coloredcode"&gt;Please mark as answer if it help  &lt;br /&gt;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&amp;nbsp;&amp;nbsp;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Checkbox event in datagrid cannot be detected..</title><link>http://forums.silverlight.net/forums/thread/244347.aspx</link><pubDate>Wed, 08 Jul 2009 05:13:21 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:244347</guid><dc:creator>varshavmane</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/244347.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=244347</wfw:commentRss><description>&lt;p&gt;Check this:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://smehrozalam.wordpress.com/2009/04/03/ivalueconverters-a-great-tool-in-developing-wpfsilverlight-applications/"&gt;http://smehrozalam.wordpress.com/2009/04/03/ivalueconverters-a-great-tool-in-developing-wpfsilverlight-applications/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.danielwoolston.com/?p=34"&gt;http://www.danielwoolston.com/?p=34&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://timheuer.com/blog/archive/2008/07/30/format-data-in-silverlight-databinding-valueconverter.aspx"&gt;http://timheuer.com/blog/archive/2008/07/30/format-data-in-silverlight-databinding-valueconverter.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH &lt;img src="http://silverlight.net/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Checkbox event in datagrid cannot be detected..</title><link>http://forums.silverlight.net/forums/thread/244328.aspx</link><pubDate>Wed, 08 Jul 2009 04:06:06 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:244328</guid><dc:creator>slen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/244328.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=244328</wfw:commentRss><description>&lt;p&gt;Sorry I tried the code, but it didn&amp;#39;t work. &lt;/p&gt;&lt;p&gt;I think I do not understand much.&lt;/p&gt;&lt;p&gt;I implemented the IValueConverter in my countryxaml.vb that contains a datagrid with the checkbox.&lt;/p&gt;&lt;p&gt;Because I implemented an interface, I also put the 2 functions into my country.xaml.vb, I got the following errors&lt;/p&gt;&lt;p&gt;&lt;i&gt;: Error&amp;nbsp;&amp;nbsp; &amp;nbsp;8&amp;nbsp;&amp;nbsp; &amp;nbsp;Argument not specified for parameter &amp;#39;parameter&amp;#39; of &amp;#39;Public Function Convert(value As Object, targetType As System.Type, parameter As Object, culture As System.Globalization.CultureInfo) As Object&amp;#39;.&amp;nbsp;&amp;nbsp; &amp;nbsp;C:\Users\Sharyn\Documents\Silverlight Practise\Enumaration\Enumaration\Views\Country.xaml.vb&amp;nbsp;&amp;nbsp; &amp;nbsp;90&amp;nbsp;&amp;nbsp; &amp;nbsp;60&amp;nbsp;&amp;nbsp; &amp;nbsp;Enumaration&lt;br /&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;:Error&amp;nbsp;&amp;nbsp; &amp;nbsp;4&amp;nbsp;&amp;nbsp; &amp;nbsp;Argument not specified for parameter &amp;#39;parameter&amp;#39; of &amp;#39;Public Function Convert(value As Object, targetType As System.Type, parameter As Object, culture As System.Globalization.CultureInfo) As Object&amp;#39;.&amp;nbsp;&amp;nbsp; &amp;nbsp;C:\Users\Sharyn\Documents\Silverlight Practise\Enumaration\Enumaration\Views\Country.xaml.vb&amp;nbsp;&amp;nbsp; &amp;nbsp;64&amp;nbsp;&amp;nbsp; &amp;nbsp;70&amp;nbsp;&amp;nbsp; &amp;nbsp;Enumaration&lt;/i&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;These errors seems the same to me and it repeated about 10 times.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Here what I do not understand. &lt;/p&gt;&lt;p&gt;&amp;nbsp;How this function be executed? How this will communicate with the checkbox in datagrid?&lt;/p&gt;&lt;p&gt;Thanks .... &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Checkbox event in datagrid cannot be detected..</title><link>http://forums.silverlight.net/forums/thread/243775.aspx</link><pubDate>Tue, 07 Jul 2009 09:00:35 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243775</guid><dc:creator>koyot3</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243775.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=243775</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;it&amp;#39;s not a problem... you can keep your id, but using boolean for your checkbox... look for IValueConverter&lt;/p&gt;&lt;p&gt;in my case&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int myValue = (int)value;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (myValue &amp;gt; 0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return &amp;quot;n°&amp;quot; +myValue;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return &amp;quot;&amp;quot;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;/p&gt;&lt;p&gt;if my id &amp;gt;0, I add &amp;quot;n°&amp;quot; in my cell..... put the correct value (my ID) is again available in my objet....&lt;/p&gt;&lt;p&gt;(myObj.Id= 1 and not &amp;quot;n°1&amp;quot; )&lt;/p&gt;&lt;p&gt;in your case for example&lt;/p&gt;&lt;p&gt;&amp;nbsp;public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int myId = (int)value;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (myValue &amp;gt; 0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp;hope this help you&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Checkbox event in datagrid cannot be detected..</title><link>http://forums.silverlight.net/forums/thread/243773.aspx</link><pubDate>Tue, 07 Jul 2009 08:49:25 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243773</guid><dc:creator>slen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243773.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=243773</wfw:commentRss><description>&lt;p&gt;If I bind it with boolean, it only gives me true/false value. The reason I put an id there is because when determine the checkbox is checked, I can retrieve the id to search in the database for record.&lt;/p&gt;&lt;p&gt;id can have values from 1 - ....&lt;/p&gt;&lt;p&gt;Thanks &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Re: Re: Checkbox event in datagrid cannot be detected..</title><link>http://forums.silverlight.net/forums/thread/243733.aspx</link><pubDate>Tue, 07 Jul 2009 07:55:13 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243733</guid><dc:creator>koyot3</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243733.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=243733</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;ts better for a check box to bind with a boolean.....&lt;/p&gt;&lt;p&gt;you can use an IValueConverter to return the good value .... &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Re: Re: Checkbox event in datagrid cannot be detected..</title><link>http://forums.silverlight.net/forums/thread/243731.aspx</link><pubDate>Tue, 07 Jul 2009 07:48:39 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243731</guid><dc:creator>slen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243731.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=243731</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The Id is in integer type ...&lt;/p&gt;&lt;p&gt;I tried it setting it to null first .. but it didn&amp;#39;t work .. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Re: Checkbox event in datagrid cannot be detected..</title><link>http://forums.silverlight.net/forums/thread/243697.aspx</link><pubDate>Tue, 07 Jul 2009 06:54:58 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243697</guid><dc:creator>koyot3</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243697.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=243697</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;you can add :&lt;/p&gt;&lt;p&gt;myDatagrid.ItemsSource = null before the myDatagrid.ItemsSource = myCollection...&lt;/p&gt;&lt;p&gt;what&amp;#39;s the type of your &amp;quot;Id&amp;quot; property ?? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Re: Checkbox event in datagrid cannot be detected..</title><link>http://forums.silverlight.net/forums/thread/243695.aspx</link><pubDate>Tue, 07 Jul 2009 06:50:48 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243695</guid><dc:creator>slen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243695.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=243695</wfw:commentRss><description>&lt;p&gt;Is the collection of data. I assigned to source because I want to store that object. It returns ObservableCollection object ...&lt;/p&gt;&lt;p&gt;Thannks &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Checkbox event in datagrid cannot be detected..</title><link>http://forums.silverlight.net/forums/thread/243634.aspx</link><pubDate>Tue, 07 Jul 2009 05:08:51 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243634</guid><dc:creator>varshavmane</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243634.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=243634</wfw:commentRss><description>&lt;p&gt;What you get in e.Result ?&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Checkbox event in datagrid cannot be detected..</title><link>http://forums.silverlight.net/forums/thread/243526.aspx</link><pubDate>Tue, 07 Jul 2009 01:14:15 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243526</guid><dc:creator>slen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243526.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=243526</wfw:commentRss><description>&lt;p&gt;The following code is the part from WCF.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Private Sub Page_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)&lt;/p&gt;&lt;p&gt;webService = New ServiceReference2.ServiceCountryClient&lt;br /&gt;AddHandler webService.GetCountryCompleted, AddressOf webService_GetCountryCompleted &lt;/p&gt;&lt;p&gt;webService.GetCountryAsync() &lt;/p&gt;&lt;p&gt;&amp;nbsp;End Sub&lt;/p&gt;&lt;p&gt;Private Sub webService_GetCountryCompleted(ByVal sender As Object, ByVal e As CountrySilverlight.ServiceReference2.GetCountryCompletedEventArgs)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; source = e.Result&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; theDataGrid.ItemsSource = source &amp;#39; &lt;span style="font-style:italic;"&gt;source actually is an ObservableCollection object&lt;/span&gt;&lt;br style="font-style:italic;" /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>