Apply the view design to datagrid.
将视图设计应用于datagrid。
For a clean presentation, the column headers of the DataGrid are cleared here and instead are populated when you apply the view design later.
要获得清晰的表示,DataGrid的列标题在此处被清除,并在以后应用视图设计时填充。
Populate DataGrid with view content
在DataGrid 中填充视图内容
Similarly, the DataGrid class USES view state to issue pagination, edit, and sorting events.
同样地,datagrid类使用ViewState发布分页、编辑和排序事件。
Unfortunately, if you want to use features like sorting, paging, or editing in the DataGrid, you cannot disable its view state.
遗憾的是,如果您想要使用DataGrid中诸如排序、分页或编辑的功能,则不能禁用其ViewState。
For example, if we place a DataGrid on a form and bind it to the authors table in the pubs database, as shown in Figure 3, the size of the view state string in 1.x is 12,648 characters.
例如,如果我们在窗体上放置一个DataGrid,将其绑定到pubs数据库的authors表格,如图3所示,则1 . x中的ViewState字符串大小是12,648个字符。
Several server controls, the most well known of which is the DataGrid, tend to make excessive use of view state, even in cases where it is not needed.
许多的服务器控件很趋于使用ViewState,如众所周知的DataGrid,而有时候是没有必须使用的。
Several server controls, the most well known of which is the DataGrid, tend to make excessive use of view state, even in cases where it is not needed.
许多的服务器控件很趋于使用ViewState,如众所周知的DataGrid,而有时候是没有必须使用的。
应用推荐