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 |
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; } |
In this event you can set the WebGrid's AllowEdit, AllowDelete and AllowAddNew properties to Yes programmatically.
ISNet.WebUI.WebGrid.BaseEventArgs
ISNet.WebUI.WebGrid.LayoutEventArgs
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