ZennoLab Assemblies Documentation
DeleteRow(Int32) Method
Example 
Type: System.Int32

The zero-based index of the row to remove.

Removes the row at the specified index of the IZennoTable object.
Syntax
void DeleteRow( 
   int rowNumber
)

Parameters

rowNumber
Type: System.Int32

The zero-based index of the row to remove.

Example
The following code using IZennoTable Interface for removing row.
// get table by name "MyTable"
IZennoTable table = project.Tables["MyTable"];
 
// remove row 
table.DeleteRow(0);
 
// if any row exist then remove row by index "0"
if (project.Tables["MyTable"].RowCount > 0) project.Tables["MyTable"].DeleteRow(0);
// get table by name "MyTable"
$table = $project->Tables->get_Item("MyTable");
 
// remove row 
$table->DeleteRow(0);
 
// if any row exist then remove row by index "0"
if ($project->Tables-get_Item("MyTable")->RowCount > 0) $project->Tables->get_Item("MyTable")->DeleteRow(0);
Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven

See Also

Reference

IZennoTable Interface
IZennoTable Members
Overload List
ITables Interface
AddRow Method

Send Feedback