---
title: "Ext.grid.View"
description: "xtype 为 gridview 的 Ext JS 原生组件参考。"
---

> Documentation Index
> Fetch the complete documentation index at: https://ag.879818327.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Ext.grid.View

源码定义：`ext-all-debug.js:116948`。分类：数据视图、表格与树。

## 创建示例

```javascript
var component = Ext.create("Ext.grid.View", {
  xtype: "gridview",
  autoScroll: true,
  stripeRows: true,
  renderTo: Ext.getBody()
});
```

## 属性

| 属性 | 类型 | 默认值 | 说明 | 配置示例 |
| --- | --- | --- | --- | --- |
| `autoScroll` | `Boolean` | `true` | 控制内容溢出时是否自动显示滚动条。 | `autoScroll: true` |
| `stripeRows` | `Boolean` | `true` | 控制是否启用 `stripeRows` 行为。 | `stripeRows: true` |

## 方法

源码中未找到该组件自身声明的实例方法；可使用继承的方法。

## 事件

源码中未找到该组件自身注册的事件；可监听继承事件。

Source: https://ag.879818327.xyz/ext/data/grid-view/index.mdx
