Delete many rows

When a user has selected more than one row.

How can I find out how many rows have been selected.

I wish to delete all the selected rows like so

this.WebWorksheets[this.WebWorksheets.ActiveSheetIndex].Cells.DeleteRows(this.ActiveCell.Row, ???);

Many thanks for your time

Rod

Hi Rod,

If you want to delete rows, you may simply select the rows and press "Delete" button on the keyboard.

To get selected cells in rows, you may utilize gridweb's client-side events and functions code. Please consult the following code:

HTML source for a webform i.e., "WebForm1.aspx":



Add the client side event handler method.

<agw:GridWeb id="GridWeb1" runat="server" Height="250px" Width="350px" ................. OnSubmitClientFunction="onSubmit">....

For further info, please check the source codes of Client-Side Scripting Demos.

Thank you.