Results 1 to 1 of 1

Thread: Binding a Checkbox Column with a Byte Value 0 or 1

  1. #1

    Thread Starter
    Fanatic Member vuyiswamb's Avatar
    Join Date
    Jan 2007
    Location
    South Africa
    Posts
    829

    Binding a Checkbox Column with a Byte Value 0 or 1

    I have a Gridview where i bind the list of values from my model. Now i have a bit field from the DB and it represents yes or no, or true or false using 1 and 0. Now i want to bind this to a Checkbox column and below is what i have

    Code:
    <telerik:GridViewCheckBoxColumn  AutoSelectOnEdit="True"  DataMemberBinding="{Binding sIsMain,Mode=TwoWay}"></telerik:GridViewCheckBoxColumn>

    and it give me an Error when i run it.

    Code:
    SCRIPT5022: Unhandled Error in Silverlight Application
    Code: 4004   
    Category: ManagedRuntimeError      
    Message: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.ThrowHelper.ThrowKeyNotFoundException()
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at System.Windows.ResourceManagerWrapper.GetResourceForUri(Uri xamlUri, Type componentType)
    Last edited by vuyiswamb; Mar 30th, 2011 at 03:18 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width