Gridview之RowCommand,ButtonField[add buttons and use the RowCommand event to add custom functionality to the control]
2008-04-08 11:53
501 查看
先查阅了MSDN官方网站关于GridView的相关ButtonField,RowCommand的内容。
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowcommand.aspx
先摘抄些关键的东西:
Occurs when a button is clicked in a GridView control.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
The RowCommand event is raised when a button is clicked in the GridView control. This enables you to provide an event-handling method that performsprotected void GridView1_RowCommand(object sender,
GridViewCommandEventArgs e)
其它相关参考网址:
http://msdn2.microsoft.com/en-us/library/bb498196.aspx
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowcommand.aspx
先摘抄些关键的东西:
Occurs when a button is clicked in a GridView control.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
The RowCommand event is raised when a button is clicked in the GridView control. This enables you to provide an event-handling method that performsprotected void GridView1_RowCommand(object sender,
GridViewCommandEventArgs e)
其它相关参考网址:
http://msdn2.microsoft.com/en-us/library/bb498196.aspx
相关文章推荐
- How to create fully custom Role, User, Event, Resource classes for use with the Security and Scheduler modules
- [Android 問題] How to Add a Button in ListView, and Make the Event of onClick and onItemClick Coexist?
- How to use the Erase Data and Disable Handheld command
- Use the DataList Control to Present and Edit Data...
- use MyButton is simple,only add two file and then add some code just bellow in any dlg src declear the button control and will ok!
- The run order about Loaded event and OnApplyTemplate in custom control of Silverlight 2 beta 2
- the command 'vim' and how to use it
- jooq使用自定义策略生成代码(How to use a custom strategy with the jOOQ code-generator and Maven?)
- How To Use the Windows Phone 8.1 GridView and ListView Controls
- Vi and Vim Autocommand: 3 Steps to Add Custom Header To Your File Automatically
- Use the ItemDataBound event to customize the DataGrid control.
- Use the Stack mehod and a temporary Stack to retrieve entries from the Stack source and add
- tsm客户端 the system date and use the ACCEPT DATE command to establish the current
- Vi and Vim Autocommand: 3 Steps to Add Custom Header To Your File Automatically
- xargs: How To Control and Use Command Line Arguments
- [Angular] Use Angular’s @HostBinding and :host(...) to add styling to the component itself
- The robot API &&How to add and use sensor.
- use code to generate Silverlight Controls at run time, and serialize the control into XAML file
- [WP7] How to press the mouse on a control, and detect MouseLeftButtonUp on another
- error: Resource at touchFocusParameter appears in overlay but not in the base package; use to add.