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






Returns the value of the field specified in DataKeyField property of a WebGridTable object.

Syntax

Visual Basic (Declaration) 
<BrowsableAttribute(False)>
<DescriptionAttribute("Returns the value of the field specified in DataKeyField property of a WebGridTable object.")>
<DefaultValueAttribute()>
<NotifyParentPropertyAttribute(True)>
Public ReadOnly Property KeyValue As Object
Visual Basic (Usage)Copy Code
Dim instance As WebGridRow
Dim value As Object
 
value = instance.KeyValue
C# 
[BrowsableAttribute(false)]
[DescriptionAttribute("Returns the value of the field specified in DataKeyField property of a WebGridTable object.")]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
public object KeyValue {get;}
Delphi 
public read-only property KeyValue: TObject; 
JScript 
BrowsableAttribute()
DescriptionAttribute("Returns the value of the field specified in DataKeyField property of a WebGridTable object.")
DefaultValueAttribute()
NotifyParentPropertyAttribute()
public function get KeyValue : Object
Managed Extensions for C++ 
[BrowsableAttribute(false)]
[DescriptionAttribute("Returns the value of the field specified in DataKeyField property of a WebGridTable object.")]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
public: __property Object* get_KeyValue();
C++/CLI 
[BrowsableAttribute(false)]
[DescriptionAttribute("Returns the value of the field specified in DataKeyField property of a WebGridTable object.")]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
public:
property Object^ KeyValue {
   Object^ get();
}

Example

 

The following example shows you how to expand child table if the row's key value is CACTU.
C#Copy Code
private void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)
{
    if (e.Row.Type == ISNet.WebUI.WebGrid.RowType.Record) 
    {
       if (e.Row.KeyValue.ToString() == "CACTU")
       e.Row.ExpandChildRow();
    }
}

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.