Angularjs ng网格显示选择复选框

Angularjs ng网格显示选择复选框,angularjs,ng-grid,Angularjs,Ng Grid,如果取消选择了一项,如何在ng网格中取消选择showSelectionCheckbox $scope.gridData; $scope.gridOptions = { columnDefs: [ { field: 'FullName', displayName: 'Full Name', width: 200, minWidth: 200 }, { field: 'Roles', displayName: 'Role', width: 200, minWi

如果取消选择了一项,如何在ng网格中取消选择showSelectionCheckbox

$scope.gridData;
$scope.gridOptions = {
    columnDefs: [
        { field: 'FullName', displayName: 'Full Name', width: 200, minWidth: 200 },
        { field: 'Roles', displayName: 'Role', width: 200, minWidth: 200 },
        { field: 'Email', displayName: 'Email', width: 225, minWidth: 200 }
        ],
        data: 'gridData',
        //enableColumnResize: true,
        selectWithCheckboxOnly: true,
        showSelectionCheckbox: true,
        checkboxCellTemplate: '<div class="ngSelectionCell" ng-class="Header"><input tabindex="-1" class="ngSelectionCheckbox" class="Header" type="checkbox" ng-checked="row.selected" /></div>',
        selectedItems: []
    };
在gridOptions{}中添加multiSelect:false

在显示我误读了问题后更新:

在gridOptions.afterSelectionChange函数中,可以获取第一列并将其可见性设置为false:

$scope.gridOptions.$gridScope.columns[0].visible = false;

这并不能回答这个问题。若要评论或要求作者澄清,请在其帖子下方留下评论。@KhanImranAli谢谢,我误读了这个问题。我更新了我的答案以匹配。