Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
960
unbound columns
posted

Hi,

 I have a grid that is bound to a collection.

I added 4 columns of type (bool) which are unbound.

I can modify the data in the bound columns, but whenever i check/uncheck the unbound columns, the value always reverts to original.  Am I missing something to make those columns editable?

Also, one of the bound columns has a value list attached to it.  The dropdown works fine, but I am able to type in text which is not in the value list.

How can I change it so that it will only allow values from the ValueList?

 

Thanks,

Parents
No Data
Reply
  • 37774
    posted

     It sounds like you're using the InitializeRow event to update the values of the unbound columns; the problem with this is that this event will fire when cells in the row change values.  You could check the e.ReInitialize parameter to see if you need to do your initialization.

    As for the value list issue, try setting the Style of the column to DropDownList or DropDownValidate.

    -Matt

Children
No Data