Questions tagged [row]

A horizontal line of cells in a spreadsheet, SQL table, HTML table, or similar structure.

A row most commonly refers to a horizontal line of cells in a spreadsheet or similar structure.

7733 questions
71
votes
1 answer

Bootstrap table row hover

How do I make the background change of a table row in Bootstrap 3 on hover. The table class I am using right now is table table-striped. I tried to add a extra class to the tags within the table and made the css like this…
user6827
  • 1,576
  • 5
  • 19
  • 25
67
votes
9 answers

Linethrough/strikethrough a whole HTML table row

After some research, I couldn't find an answer to this question. There was this but it didn't really answer my question. I would like to "strikethrough" a complete HTML table row in CSS, not just the text in it. Is it at all possible? From the…
Mathieu M-Gosselin
  • 1,225
  • 1
  • 13
  • 17
66
votes
13 answers

How do I count the number of rows and columns in a file using bash?

Say I have a large file with many rows and many columns. I'd like to find out how many rows and columns I have using bash.
Nick
  • 5,411
  • 4
  • 19
  • 7
64
votes
4 answers

Remove last N rows in data frame with the arbitrary number of rows

I have a data frame and I want to remove last N rows from it. If I want to remove 5 rows, I currently use the following command, which in my opinion is rather convoluted: df<- df[-seq(nrow(df),nrow(df)-4),] How would you accomplish task, is there a…
Alby
  • 5,522
  • 7
  • 41
  • 51
60
votes
4 answers

how to get selected rows in QTableView

After watching many threads about getting selected rows numbers, I am really confused. How do you get ROW numbers in QTableView using QStandardItemModel I used below selection model and behavior…
shett73
  • 601
  • 1
  • 5
  • 4
58
votes
6 answers

Copy data from one existing row to another existing row in SQL?

I have a table full of tracking data for as specific course, course number 6. Now I have added new tracking data for course number 11. Each row of data is for one user for one course, so for users assigned to both course 6 and course 11 there are…
MetaGuru
  • 42,847
  • 67
  • 188
  • 294
58
votes
2 answers

Return row number(s) for a particular value in a column in a dataframe

I have a data frame (df) and I was wondering how to return the row number(s) for a particular value (2585) in the 4th column (height_chad1) of the same data frame? I've tried: row(mydata_2$height_chad1, 2585) and I get the following error: Error…
pkg77x7
  • 925
  • 2
  • 7
  • 10
57
votes
3 answers

Programmatically select a row in JTable

When the application is started, none of the rows is selected. But I would like to show that the first row is already selected. How to do this? Do I need to set the color of a row in JTable? Update: I tried table.setRowSelectionInterval(0,0). I…
Klausos Klausos
  • 15,308
  • 51
  • 135
  • 217
57
votes
2 answers

How to convert list to row dataframe with Pandas

I have a list of items like this: A = ['1', 'd', 'p', 'bab', ''] My goal is to convert such list into a dataframe of 1 row and 5 columns. If I type pd.DataFrame(A) I get 5 rows and 1 column. What should I do in order to get the result I want?
Federico Gentile
  • 5,650
  • 10
  • 47
  • 102
55
votes
2 answers

Selecting row while UITableView is in editing mode

I have a UITableView where when I put it in editing mode, I want selective rows to be selectable, however, they are not. Is there a way I can force them to be selectable?
skylerl
  • 4,030
  • 12
  • 41
  • 60
54
votes
3 answers

Bootstrap 4 row fill remaining height

I'm struggling to make the a row stretch to fill the rest of the available height. I tried adding h-100 to the row class but that causes a white space at the bottom of the screen. There must be a way to do it but I'm totally stumped.. Here is my…
Egor
  • 764
  • 2
  • 6
  • 11
54
votes
7 answers

android listview item height

Why when i use SimpleCursorAdapter for ListView i have items height in ListView like this - (My code based on this) But when using arrays Listview items have big height (I learn listview based on this) Row layout for item listview is
olegi
  • 2,051
  • 3
  • 16
  • 9
51
votes
8 answers

How to get the row count of a query in Android using SQLite?

How do I get the row count of a query in Android using SQLite? It seems my following method does not work. public int getFragmentCountByMixId(int mixId) { int count = 0; SQLiteDatabase db = dbOpenHelper.getWritableDatabase(); Cursor…
David
  • 2,691
  • 7
  • 38
  • 50
49
votes
9 answers

Deleting a Row from a UITableView in Swift?

I have a table of names and I am making a swipe and delete function for them which removes them from a names variable which is an array. I selected the functions which most closely resembled the tutorial inside xcode and filled them out, but my app…
infernouk
  • 1,137
  • 4
  • 13
  • 21
47
votes
5 answers

How to programmatically access Control in WPF Grid by row and column index?

Once Controls have been added to a WPF Grid, is there a way to programmatically access them by row and/or column index? Something along the lines of: var myControl = (object)MyGrid.GetChild(int row, int column); ... where GetChild is the method I…
Mathias
  • 15,191
  • 9
  • 60
  • 92