ZennoLab Assemblies Documentation
DeleteRow(Int32) Method
See Also  Example Send Feedback
ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel Namespace > IZennoTable Interface > DeleteRow Method : DeleteRow(Int32) Method
rowNumber
Type: System.Int32

The zero-based index of the row to remove.

Glossary Item Box

Removes the row at the specified index of the IZennoTable object.

Syntax

C# 
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.
C#Copy Code
// 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);
PHPCopy Code
// 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

© 2013 All Rights Reserved.