Questions tagged [rowdeleting]

91 questions
1
vote
1 answer

GridView1_RowDeleting() not being called?

I am attempting to prevent the deletion of a Row for my GridView like this: void GridView1_RowDeleting(Object sender, GridViewDeleteEventArgs e) { if (GridView1.Rows[e.RowIndex].Cells[1].ToString() == "root") { …
MetaGuru
  • 42,847
  • 67
  • 188
  • 294
0
votes
1 answer

OnClientClick doesn't fire on first postback but will on second click

Okay I have a gridview that allows users to delete a row, when the use clicks the delete link button the postback occurs. I get the index of the row that the button fires on which then calls a stored procedure that gets a count. But before the row…
0
votes
1 answer

VBA to auto populate a table from data entered in another table

I'm an electrical contractor and I made a worksheet to help me bid projects. Say I'm bidding on wiring a new house. I have broken down each task "outlet"/"Switch" to materials and labor needed for each task. Those materials are then multiplied by…
Kooks
  • 3
  • 2
0
votes
1 answer

VBA Row Delete and Sort

I have two problems that are seemingly impossible to fix. First is a type mismatch that I can't place. (error 13) The goal is to delete every empty row in the range between blocks of data. Every variable I call (i, y, and rows) are defined. Should i…
User
  • 5
  • 2
0
votes
2 answers

how to delete for an empty row in a column in python csv

I will like to delete all empty row in a column prices_dataframe[prices_dataframe['postcode'].isnull()] This only seems to be showing me the empty rows not deleting it.
Dera
  • 13
  • 2
0
votes
1 answer

How do I delete a specific line in a text file? (Python)

print("These are the coffees and the quantities") print(f.read()) time.sleep(1) text = input("What line number do you want to delete?") with open("coffee names.txt", "r+") as fp: lines = fp.readlines() with…
almond6
  • 19
  • 4
0
votes
2 answers

numpy delete not deleting the rows from arrays

I am trying to perform the following: I generate 4 4 by 4 arrays with random values: scan_plus_1 ... scan_plus_4 Next I want to remove rows from each of the previously generated arrays using the numpy.delete funtion. Rows should be deleted using the…
0
votes
1 answer

How to delete a table rows and keep top X rows

I have this large table in MySQL incident_archive that has millions of records, I want to sort the rows by created column and keep the Top X rows and delete the rest, what is the most efficient way to do this. So far I came up with this solution in…
DeadlyDagger
  • 109
  • 1
  • 12
0
votes
1 answer

Bash script unable to delete rows from mysql table

I have a script that will delete rows from mysql tables when they are more than a certain date: echo "[INFO] Remove Foreign_key_Check" >> ${LOG_FILE} init_check=$(mysql -u${MYSQL_USER} -p${MYSQL_PASSWORD} ${DATABASE_NAME} -e "SET GLOBAL…
0
votes
1 answer

Deleting an item from RecyclerView causes shuffling or duplicating other items

I have a recyclerView that users can add or delete item rows and that rows saving the Firebase Firestore. Adding function works fine but deleting function does not. I created an interface (Listener) through PairDetailRecyclerAdapter. It contains…
Sevban Bayır
  • 196
  • 3
  • 13
0
votes
1 answer

Script deleting all formulas in the Google Sheet, how to fix?

I have sheet A and B, data from sheet A which matching my criteria I am duplicating on sheet B by using formulas. Since some data not matching my criteria I am getting an empty row. **PROBLEM STATEMENT ** I have a script which I am planning to use…
Dima Bur
  • 11
  • 2
0
votes
1 answer

How do I delete a whole row that contains "NaN" values using python code?

I understand that there have been already threads about deleting rows containing NaN in Python, but my question is a little bit different. I don't understand why it keeps producing this error using this code: data = data.drop(data.index[0]) Also,…
DSeals
  • 29
  • 7
0
votes
2 answers

In R, how to delete a series of cells based on the value from another cell?

I have a 300x300 df. Each row represents the data of a different patient, named with an id. The first 2 columns are the patients id´s. Column 'id_all' contains more participants than needed, and than 'id'. My goal is to keep only the patient…
Pauliinaa
  • 61
  • 7
0
votes
1 answer

Word- VBA- How To Prevent Deletion of Selected Repeating Section Content Controls If There Is Only One Section Remaining?

The following code successfully deletes the selected RSCC but always prevents the first RSCC from being deleted. Dim cc As ContentControl If Selection.Information(wdInContentControl) Then Set cc = Selection.ParentContentControl …
0
votes
1 answer

Word- VBA- How To Delete Selected Row in A Table and Protect First Two Rows?

The following code successfully deletes the selection in a table. If Selection.Information(wdWithInTable) Then Selection.Rows.Delete End If Furthermore, the following code successfully prevents the first two table rows from deletion but deletes…