I just checked this out with an app I have written, and the
IsCurrentCellDirty property does change. When are you checking it? When you
click a DatGridViewCheckBoxCell, there are several events that fire,
depending on the circumstances. First, if another cell had the focus, the
CellEndEdit event fires. At this point, the CurrentCell is not the
DataGridViewCheckBoxCell. After it is checked, the CellValidating event
fires. At this point, the IsCurrentCellDirty property is still false, even
though the CheckBox value is changed. It is when the CellEndEdit event fires
that the actual underlying value is changed, and the IsCurrentCellDirty
property is true.
--
HTH,
Kevin Spencer
Microsoft MVP
Chicken Salad Surgery
Expect the unaccepted.
"jsh02_nova@hotmail.com" <jsh02novahotmailcom@discussions.microsoft.com>
[quoted text, click to view] wrote in message news:B0955D0D-DB34-4BB0-9B27-03E9C27776DD@microsoft.com...
> Thanks for the response.
> The Data type is Boolean. I've check the DataPropertyName and they both
> match. The CurrentCellChangedValue event fires and the underlying
> datatable
> changes also, but that is my only hint that some has changed, is that the
> ChangedValue event fires. The CurrentCellIsDirty value never changes for
> the
> DataGridView.
> Do you have any clues as to what causes this behavior in a winform?
>
> "Kevin Spencer" wrote:
>
>> What is the type of the data in the DataColumn?
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> Chicken Salad Surgery
>>
>> Who is Mighty Abbott? A twin-turret scalawag.
>>
>> "jsh02_nova@hotmail.com" <jsh02novahotmailcom@discussions.microsoft.com>
>> wrote in message
>> news:EC435806-31CE-4C8A-8F8D-DA27B2F13E2D@microsoft.com...
>> > What would prevent a DataGridViewCheckBoxColumn control in a
>> > DataGridView
>> > from being bound to its data in the Datasource table?
>>
>>
>>