Hi,
I have a dataGrid with a threestate Checkbox-Column. Off = 0, On = 1, Indeterminate = 2.
State Off and On ok, but Indeterminate only the last is show correctly.
After fill the dataGrid On and Indeterminate always the same. I don't know what is wrong.
Database Columns are:
Code varchar(10)
Description varchar(50)
Sort tinyint (0=off,1=on,2=indeterminate)
Fill datagrid:
private bool LoadStreets()
{
bool bOk = true;
try
{
context.Street.Load();
bindingSourceStreet.DataSource = context.Strassen.Local.ToBindingList();
}
catch (DbEntityValidationException ex)
{
bOk = false;
}
return bOk;
}
Please can you tell me what is wrong?
Thank you
Andreas