## GridWorksheet.SetColumnReadonly method

将列设置为只读，因此用户不能从客户端删除它。 这是GridWeb专门的扩展方法，在实际的excel文件中不会保留和生效

```csharp
public void SetColumnReadonly(int columnIndex, bool isReadonly)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| columnIndex | Int32 | 列索引。 |
| isReadonly | Boolean | 对或错。 |

### 也可以看看

* class [GridWorksheet](../../gridworksheet)
* 命名空间 [Aspose.Cells.GridWeb.Data](../../gridworksheet)
* 部件 [Aspose.Cells.GridWeb](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.GridWeb.dll -->
