FAQ Database Discussion Community


UITableView strange behaviour when using more than 1 Prototype Cell

ios,uitableview,swift,prototype,cells
So I have a UITableView which I plan to use 2 prototype cells inside of it. Let's call them Cell A and Cell B. Cell A has it's own layout and Cell B has it's own layout. Here's the thing, in a typical UITableView implementation with only 1 prototype cell,...

Google Chrome sends an error of undefined cells in javascript

javascript,html,table,rows,cells
for (var i = RN; i > 1; i--) { Credit[i] = document.getElementById("table").rows[i].cells[1].innerHTML; Grade[i] = document.getElementById("table").rows[i].cells[2].innerHTML; total += Credit[i]; } error:Uncaught TypeError: undefined is not a function im not sure why cells in undefined here...

Split Cell by Numbers Within Cell

excel,vba,split,cells
I have some fields that need to be split up into different cells. They are in the following format: Numbers on Mission 21 0 21 Numbers on Mission 5 1 6 The desired output would be 4 separate cells. The first would contain the words in the string "Numbers on...

How to find indices of the largest N elements in a cell?

matlab,cells
I Matlab, I know that I can use this to get the largest number of a cell. cell_max = cellfun(@(x) max(x(:)), the_cell); However, there are two problems with this. First, I need the index of the maximum values as well. Second, I need not the single largest value of each...

Get rid of white background for excel export ssis

background,ssis,cells
I need to make a report that export to excel, if got that. But the client wants to have the empty cells visible and not just a white background....

Border some cells in table via CSS

css,layout,border,cells
In a very basic table I would like to put a border around some specific cells. I created for instance this table: <?php echo '<link rel="stylesheet" type="text/css" href="style1tt.css">'; echo '<table>'; echo '<tr> <th>name</th> <th>score</th> <th>position</th></tr>'; echo '<tr> <td>Bart</td> <td>189</td> <td>2</td></tr>'; echo '<tr> <td>Shirley</td> <td>211</td> <td>1</td></tr>';...

Swift selecting a cell in each section [duplicate]

ios,uitableview,swift,cells,sections
This question is an exact duplicate of: Select one row in each section of UITableView ios? 3 answers I have a little problem in selecting multiple cells in swift. I don't want to let the user select as many cells as he wants, he is only allowed to select...

Choosing cells in a structure with fields that contain random elements

arrays,matlab,struct,cells
I really appreciate it if anyone could answer this question. I asked many people and yet could not find a good answer. DATA = struct ('Direction',{[1,1,1,1],[1,1,2,1],[2,2,2,2,2],[2,2,2,2,1,2],[2,2,2,2],[1,4,3,5,2]); I have this structure and I am using the following code to the ones with a specific direction: DATA = DATA(arrayfun(@(x) sum(x.Direction == 2)...

Two cells same input in excel

excel,linker,cells
I am searching for a solution in excel. My goal is to enter a value in two different sheets but this value is the same in condition that if we change a value in any of these two sheets it will change automatically in the second one. So I can't...

DataGridView, How to use if statement for a cell that starts with a string

c#,datagridview,background-color,cells
I would like to be able to use an if statement to determine the colour of a DGV cell that starts with a string "Manual". I know how to change the cell's colour if (Convert.ToString(DGV_Points.Rows[x].Cells[2].Value.StartsWith) == "Manual") { } Also is it possible to disable the restoration of the cell's...

Create Custom Dynamic Prototype Cells Programatically

ios,uitableview,swift,cells
I am having an issue trying to create Dynamic Prototype Cells programmatically. This is my first time trying this approach. I have always created them through storyboard. I have my ViewController.swift file which contains the following var noteListTableView: UITableView = UITableView() noteListTableView.frame.origin.x = 0.0 noteListTableView.frame.origin.y = kNAV_BAR_HEIGHT noteListTableView.frame.size.width = kDEVICE_WIDTH...

Datagridview math operation with next row data

c#,math,datagridview,rows,cells
I have datagridview with 7 columns. But its not bind to any database. Rows will be added from few textboxes line by line when i press the "Add" button on my form. But i have a problem with my 6th column data(Cells[5]). current row 6th column data value = next...

PHPExcel search/return all rows containing perticular value in cells

javascript,php,rows,phpexcel,cells
I tried to find a way to just get a particular rows using PHPExcel. After searching on the internet, I cannot figure it out on my own. What I want to do is to list all the rows that have a "I1/027" as a column content. For example: Hours |...

Excel - when I click on any cell from the group (set by me), I'd like to highlight all of the 'connected' cells instantly

excel,excel-formula,excel-2007,highlighting,cells
Example of what I want. We have an excel spreadsheet. I want to 'group' i.e. E3, E6, E10 (NOT E4, E5, E7 etc... that's the point) cells so if I click of any of them, all of them will be highlighted. So let's say, I click on E3 so E3,...

Divide cell or array of arbitrary size into pieces of defined size

arrays,matlab,cells,divide
I have a list of coordinate data that I am trying to divide into pieces small enough to send to a microcontroller. Currently I have a cell of data that looks like this which is quite large: [46.06,32.98] [15.66,78,42] Etc. I need to round the values so I convert it...

Counting the divs in a cell and adding styling

javascript,jquery,html,css,cells
At the moment, I'm using a plugin for time tabling and it builds the time tables in to a table. As per the customer's request, they would like to be able to have two classes at the same time. To facilitate this, I need to count if a cell has...