Search code examples
c#.netwinformswindows-phonewindows-ce

Cannot create object for DataGridBoolColumn in winform for datagrid in windows ce 6 app


I am trying to create an object of DataGridBoolColumn. But it is not in any namespace. Below is my simple code.

The type or namespace name 'DataGridBoolColumn' could not be found (are you missing a using directive or an assembly reference?) C:\Csharp apps\PickerPayScreener\PickerPayScreener\Form1.cs 235 21 PickerPayScreener

I am getting a red squiggle line under DataGridBoolColumn.

DataGridBoolColumn cs1 = new DataGridBoolColumn();
cs1.NullValue = false;
cs1.TrueValue = true;
cs1.FalseValue = false;
cs1.MappingName = "checked";
cs1.ReadOnly = false;
gdPickerDetail.TableStyles[0].GridColumnStyles.Add(cs1);

Solution

  • DataGridBoolColumn isn't supported in the .NET Compact Framework (used in Windows CE). See the MSDN page: https://msdn.microsoft.com/en-us/library/ms172499(v=vs.90).aspx