NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ListItem.SetSubItem

Sets s SubItem text string to theis ListItem at the given Index. If Index >= SubItemCount, then the SubItem array is grown to match the Index. Anything in between the old array bounds and the new is declared as null.

[Visual Basic]
Overridable Public Sub SetSubItem( _
   ByVal index As Integer, _
   ByVal text As String _
)
[C#]
public virtual void SetSubItem(
   int index,
   string text
);
[C++]
public: virtual void SetSubItem(
   int index,
   String* text
);
[JScript]
public function SetSubItem(
   index : int,
   text : String
);

Parameters

index
Index to set SubItem at
text
Text of the sub item to set

Exceptions

Exception Type Condition
ArgumentException Thrown if Index < 0 or if Index > # of Current COlumns in the ListView

See Also

ListItem Class | ListItem Members | System.WinForms Namespace