Intersoft WebGrid Documentation
LayoutEventArgs Class
Members  Example  See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace : LayoutEventArgs Class






Class that allows users to set the behavior and styles of WebGrid.

Object Model

LayoutEventArgs Class

Syntax

Visual Basic (Declaration) 
Public Class LayoutEventArgs 
   Inherits BaseEventArgs
Visual Basic (Usage)Copy Code
Dim instance As LayoutEventArgs
C# 
public class LayoutEventArgs : BaseEventArgs 
Delphi 
public class LayoutEventArgs = class(BaseEventArgs)
JScript 
public class LayoutEventArgs extends BaseEventArgs
Managed Extensions for C++ 
public __gc class LayoutEventArgs : public BaseEventArgs 
C++/CLI 
public ref class LayoutEventArgs : public BaseEventArgs 

Example

C#Copy Code
private void WebGrid1_InitializeLayout(object sender, ISNet.WebUI.WebGrid.LayoutEventArgs e)
{
        e.Layout.AllowEdit = ISNet.WebUI.WebGrid.Edit.Yes;
        e.Layout.AllowDelete = ISNet.WebUI.WebGrid.Delete.Yes;
        e.Layout.AllowAddNew = ISNet.WebUI.WebGrid.AddNew.Yes;
}

Remarks

In this event you can set the WebGrid's AllowEdit, AllowDelete and AllowAddNew properties to Yes programmatically.

Inheritance Hierarchy

System.Object
   System.EventArgs
      ISNet.WebUI.WebGrid.BaseEventArgs
         ISNet.WebUI.WebGrid.LayoutEventArgs

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.