GridViewDesigner.OnClick Method

Called when a region of the design-time view of the associated control is clicked.

Namespace: System.Web.UI.Design.WebControls
Assembly: System.Design (in

protected override void OnClick (
	DesignerRegionMouseEventArgs e
protected void OnClick (
	DesignerRegionMouseEventArgs e
protected override function OnClick (
	e : DesignerRegionMouseEventArgs
Not applicable.



A DesignerRegionMouseEventArgs that defines the clicked region of the control.

The OnClick method saves the selected region index and updates the markup that renders the GridView control on the design surface.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0