| ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel Namespace > IZennoTable Interface > DeleteRow Method : DeleteRow(Int32) Method |
The zero-based index of the row to remove.
// 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);
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.