Intersoft WebGrid Documentation
Position Property
See Also  Example Send Feedback
ISNet.WebUI.WebGrid Namespace > WebGridRow Class : Position Property






Gets or sets the ordinal position of the row object.

Syntax

Visual Basic (Declaration) 
<BrowsableAttribute(False)>
<ISNet.Serialization.BinarySerializableAttribute()>
<NotifyParentPropertyAttribute(True)>
<DefaultValueAttribute()>
<DescriptionAttribute("Gets or sets the ordinal position of the row object.")>
Public Property Position As Integer
Visual Basic (Usage)Copy Code
Dim instance As WebGridRow
Dim value As Integer
 
instance.Position = value
 
value = instance.Position
C# 
[BrowsableAttribute(false)]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[DescriptionAttribute("Gets or sets the ordinal position of the row object.")]
public int Position {get; set;}
Delphi 
public read-write property Position: Integer; 
JScript 
BrowsableAttribute()
ISNet.Serialization.BinarySerializableAttribute()
NotifyParentPropertyAttribute()
DefaultValueAttribute()
DescriptionAttribute("Gets or sets the ordinal position of the row object.")
public function get,set Position : int
Managed Extensions for C++ 
[BrowsableAttribute(false)]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[DescriptionAttribute("Gets or sets the ordinal position of the row object.")]
public: __property int get_Position();
public: __property void set_Position( 
   int value
);
C++/CLI 
[BrowsableAttribute(false)]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[DescriptionAttribute("Gets or sets the ordinal position of the row object.")]
public:
property int Position {
   int get();
   void set (    int value);
}

Example

 

The following example shows you how to expand group row on the first row.
C#Copy Code
private void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)
{
    if (e.Row.Type == ISNet.WebUI.WebGrid.RowType.GroupHeader) 
    {
         if (e.Row.Position == 0)
         e.Row.ExpandGroupRow();
    }
}

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.