我有表名作为它包含的菜单(menuid,menuname,type,maker,checker)。 maker和checker数据类型位于数据库中。它只包含E和R的类型。
我正在使用visual studio 2012,LLBLgenPro,Moden UI
现在我绑定的是datagridview中的表数据,我的代码是
_dtsource = FormAccessPermissionsClass.MenuList().DefaultView;
Dgrid.ItemsSource = _dtsource;
var MakerColumn = new FirstFloor.ModernUI.Windows.Controls.DataGridCheckBoxColumn();
Binding bind = new Binding("Maker");
bind.Mode = BindingMode.OneWay;
MakerColumn.CellStyle = new Style(typeof(bool));
MakerColumn.Binding = bind;
MakerColumn.Header = "Maker";
Dgrid.Columns[3] = MakerColumn;
现在,我的问题是
1. The checkbox are coming but i cannot able to edit (checked/unchecked) it.
2. I want if type is E then checkbox is show otherwide hide it