in
Forums
Blogs
Files
Devexpress.Com
ClientCenter
Support Center
DevExpress Channel

How to set/get ENABLED property of databound checkboxlist items

Last post 8/15/2008 11:23 AM by Soraya Ranque. 2 replies.
Page 1 of 1 (3 items)
Sort Posts:
Previous Next
  • 8/14/2008 5:07 AM

    How to set/get ENABLED property of databound checkboxlist items

    Hi guys,

    As said databound checkboxlist is not sync with Items property I am having trouble in setting ENABLE property of databound checkboxlist items.

    If I do following

    chklistboxlist.Items[0].Enabled = true;

    it returns me exception as Items does not contain anything for databound checklistbox.

    Please advice how I can set/get this property to work. 

  • 8/14/2008 1:28 PM In reply to

    Re: How to set/get ENABLED property of databound checkboxlist items

    Try this:
     
    chklistboxlist.Items.Item[0].Enabled = true;

    GS

    "Soraya Ranque" wrote in message news:231121@community.devexpress.com...

    Hi guys,

    As said databound checkboxlist is not sync with Items property I am having trouble in setting ENABLE property of databound checkboxlist items.

    If I do following

    chklistboxlist.Items[0].Enabled = true;

    it returns me exception as Items does not contain anything for databound checklistbox.

    Please advice how I can set/get this property to work. 



    http://community.devexpress.com//forums/p/67949/231121.aspx#231121

  • 8/15/2008 11:23 AM In reply to

    Re: How to set/get ENABLED property of databound checkboxlist items

     Items property do not have Item property. Following will not compile

    chklistboxlist.Items.Item[0].Enabled = true;
    you can do
    chklistboxlist.Items[0].Enabled = true;
    but only with non-databound control. DevExpress has reported this as a bug in their product.
Page 1 of 1 (3 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED