Questions tagged [header-row]

31 questions
33
votes
4 answers

Prevent pandas read_csv treating first row as header of column names

I'm reading in a pandas DataFrame using pd.read_csv. I want to keep the first row as data, however it keeps getting converted to column names. I tried header=False but this just deleted it entirely. (Note on my input data: I have a string (st =…
Rafael
  • 3,096
  • 1
  • 23
  • 61
16
votes
2 answers

Selecting a row in a DataGridView and having the arrow on the row header follow

This is in C#. If I select a row in a DataGridView with DataGridViewRow.Selected = true, the row selects just fine, but the arrow in the "column header" (the grey very leftmost column) doesn't follow. How do I set that? Another question: If I set a…
BrianK
  • 2,357
  • 3
  • 32
  • 41
15
votes
2 answers

MySQL dump into CSV text files with column names at the top?

Possible Duplicate: How to export / dump a MySql table into a text file including the field names (aka headers or column names) I use this SQL snippet to dump a table into CSV text files: SELECT * FROM brand INTO OUTFILE "e:/brand.csv" FIELDS…
datasn.io
  • 12,564
  • 28
  • 113
  • 154
10
votes
2 answers

Different ContextMenuStrip for DataGridView Cell, RowHeader and ColumnHeader

I want to set different ContextMenuStrip for DataGridView Cells, RowHeaders and ColumnHeaders. The idea is that when I right-click any of these items, a different ContextMenuStrip is displayed. How do I do this?
Smith
  • 5,765
  • 17
  • 102
  • 161
3
votes
3 answers

Extract custom header column names from DataFrame, impute missing columns with NA

I've imported a tab-delimited file with Pandas read_csv in Jupyter notebook (Python 2), and I've extracted the single column of interest: rawData = pd.read_csv(filename, delim_whitespace = True, header = 20) columnOfInterest = rawData.ix[:, 9] The…
Brian Wray
  • 125
  • 1
  • 8
2
votes
1 answer

flextable: align ONLY header row to center

I have the following code which results in below fig. However I want the header_row to align center over the cols.(passed as arg.:colwidths, I've been searching, consulted the manual (but I'm new to R so my understanding is bad), but I'm at a lost.…
Christian
  • 117
  • 1
  • 3
  • 10
2
votes
1 answer

Recycler View with Header and Edit Text

I have a recyclerview with a header achieved by using two different element types. In my header there is an edit text which I want to use for filtering the nonheader elements of the list. Below is my current implementation, I have one concern and…
1
vote
3 answers

JTable doesn't add header row

I try to add header row to my JTable and next put table on panel. This is my sample code : Map tmpCart = new HashMap(); MainPanel.removeAll(); MainPanel.repaint(); tmpCart = cart.GetMap(); …
user737065
  • 389
  • 2
  • 6
  • 9
1
vote
3 answers

VBA: How to retrieve ListObject-Column-Count of given element in HeaderRowRange?

I am trying (and failing) to find a given string in the HeaderRowRange of a ListObject. I would like to pull the ListObject-Column Count (not the spreadsheet-column count). I am trying to address with using ".index", however, it is running into an…
1
vote
2 answers

Insert Header Row into CSV using SED / VBS

First post and apologies in advance for being a complete and utter newb. I have inherited something which I'm just trying to hack a solution for, I have zero knowledge in it. I have searched the forum and believe to have found a part-answer (sed…
1
vote
0 answers

Gridview click header row doesn't select data for update or delete

I've found a curious situation working with gridview. Selecting one header row on the gridview, supposedly should select the data fields and pass them to the Winform fields that allow editing to Update the record or Delete the record. Apparently the…
Adriano
  • 11
  • 3
1
vote
1 answer

How do I display the header row in a JTable that uses AutoBinding against model

For some reason my header row is not visible. I am using SwingBindings.createJTableBinding to bind a pojo to the table. My table is showing all the rows however the header row is not visible. If I inspect the JTableHeader in the table is there and…
JeffV
  • 52,985
  • 32
  • 103
  • 124
1
vote
1 answer

Read Tab Delimited File Into DataGridView

The following code I have reads a tab delimited file into a DataGridView. It works fine, but there are a couple of issues I'm not exactly sure how to address. Dim query = From line In IO.File.ReadAllLines("C:\Temp\Temp.txt") Let Data =…
Muhnamana
  • 1,014
  • 13
  • 34
  • 57
1
vote
3 answers

Remove Blank row from GridView without DB connection

I have a GridView in which I have added additional HeaderRows at various points to give the illusion of different sections to the GridView. The problem that I am having is that when I perform a postback the HeaderRows that I created turn into blank…
arcaderob
  • 481
  • 1
  • 7
  • 21
1
vote
0 answers

How to insert Header Rows into Gridview with custom method

I have a method that I call on page load that iterates through the rows in a gridview. What I would like to happen is for a header row to be inserted when the 'SectionID' of the row changes (it is a data key.) There will be 6 additional header rows…
arcaderob
  • 481
  • 1
  • 7
  • 21
1
2 3