المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Checkboxes defaulting to readonly in datagridview



C# Programming
06-15-2009, 07:00 PM
Hi,

I have this nice datagridview with a list of items. All columns are bound to an object definition, except the last, which is a column with checkboxes. The purpose of this column is that users can select which items to delete (so they select, press the delete button and gone they are, at least, that's the theory).

But...somehow .net decides a checkbox must be readonly at all times. At first I thought it had something to do with the full-row select mode, but that was not the cause. Every time I set the property of the column to Readonly = false, save it, check it, and then when I run my app .net resets that property to true (so Readonly = true) and the column becomes useless again.

What am I missing here or is something else happening?

Thanks in advance.

*edit* This is a stand-alone windows form app, .net version 3.5.

The consumer isn't a moron; she is your wife.