Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
deleteRow
Collapse the table of content
Expand the table of content

deleteRow method

Removes the specified row (tr) from the element and from the rows collection.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5

 

Syntax


HRESULT retVal = object.deleteRow(index);

Parameters

index [in, optional]

Type: long

long that specifies the zero-based position in the rows collection of the row to remove.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

Remarks

If you delete a row from a tFoot, tBody, or tHead, you also remove the row from the rows collection for the table. Deleting a row in the table also removes a row from the rows collection for the tBody.

If you delete a row from a tFoot, tBody, or tHead, index must contain the IHTMLTableRow::sectionRowIndex of the tr. When deleting a row from the table, index must contain the IHTMLTableRow::rowIndex of the tr.

See also

Reference
IHTMLTable4::insertRow
IHTMLTableRow::rowIndex
rows
IHTMLTableRow::sectionRowIndex

 

 

Community Additions

ADD
Show:
© 2015 Microsoft