Questions tagged [cells]

Cells are atomic elements within a structure composed of columns and/or rows, such as a table or grid.

Cells can contain hardcoded values, computed values based on functions, visualizations based on computed values, or external objects.

References

814 questions
136
votes
5 answers

How can I disable editing cells in a WPF Datagrid?

I'm constructing a datagrid in Windows Presentation Foundation, and I have a problem. When a user double-clicks on a cell in my datagrid, the cell goes into edit mode. I want to prevent that. Instead I want users to be able to select the full row -…
Pouyan
  • 2,849
  • 8
  • 33
  • 39
36
votes
3 answers

gridView with different cells sizes, pinterest style

Background GridView is a class that extends AdapterView , which means it shows cells in a grid-style efficiently, recycling old views to be shown as new ones when the user scrolls it. The problem Sometimes, you would want to get a special UI, which…
23
votes
1 answer

Why does Range work, but not Cells?

I'm trying to move some data from one workbook into another by assigning the values from one range to another. When I use the normal Range syntax to specify the destination range (Range("A1:B2")) my code works, but if I try to use the Range, Cells…
user2597163
  • 249
  • 1
  • 2
  • 4
19
votes
2 answers

A way to group table cells together in html?

So it is pretty straight forward. I need a way to group cells together. Like a
or a but none of them worked. seemed like a good solution but it only works for table rows. Help!
Allen Hundley
  • 221
  • 1
  • 2
  • 4
15
votes
4 answers

Sum function in VBA

I have a problem with summing cells in vba. I need to use Cells(a,b): Range("A1").function="=SUM(Range(Cells(2,1),Cells(3,2)))" but it doesn't work.
haver24
  • 241
  • 2
  • 5
  • 11
14
votes
2 answers

how to compare matlab cells or structs

Possible Duplicate: Octave/MATLAB: How to compare structs for equality? is there a simple comparison function for matlab cell or struct objects? using '==' doesn't seem to work :(
urso
  • 924
  • 1
  • 7
  • 17
12
votes
5 answers

Empty string vs NULL

I've a table where some rows have some blank cells. I tried to select such rows using IS NULL function. But the query select 0 rows. select * from zzz_fkp_registration_female where fname is null; (0 row(s) affected) Now I changed my query…
nischalinn
  • 1,133
  • 2
  • 12
  • 38
11
votes
9 answers

How to keep value of merged cells in each cell?

I created a sheet with merged cells, but the value of the merged cells is only stored in the first cell. Is there anyway, to keep the same value in each of the cells, I need that for a formula I use. Thanks!
Kinshuk
  • 113
  • 1
  • 1
  • 4
11
votes
6 answers

Hide empty cells in table

I want to hide empty cells in table. Here is my code: $(function() { $(".empty").each(hideCellIfEmpty); }); function hideCellIfEmpty() { var theCell = $(this); if (theCell.html().length == 0) { hideSoft(theCell); …
Sachin Jain
  • 21,353
  • 33
  • 103
  • 168
10
votes
3 answers

DataGridView Column Widths as Percentage

Is there any way to give each column in a DataGridView a percentage width of the total grid? I am currently using fixed widths but would like to give one column a 15% width, another one a 25% width, and so on so that 100% of the table is filled and…
Brett Powell
  • 391
  • 2
  • 5
  • 11
9
votes
4 answers

remove empty cells in MATLAB

I want to remove all empty cells at the bottom of a matlab cell array. However all code example that I found collapse the matrix to a vector, which is not what I want. So this code a = { 1, 2; 3, 4; [], []} emptyCells = cellfun('isempty', a);…
Matthias Pospiech
  • 3,130
  • 18
  • 55
  • 76
9
votes
2 answers

dequeueReusableCellWithIdentifier behavior changed for prototype cells?

In iOS5, using ARC and prototype cells for tableView on storyboard, can I replace the code below: static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil)…
Arildo Junior
  • 796
  • 1
  • 8
  • 15
8
votes
2 answers

Paste Mathematica code so that's it's broken into separate input cells

I often copy Mathematica code from websites (such as SO) to a notebook. The code usually gets pasted as a single input cell. I'm looking for a simple way to paste it as several input cells for convenient step-by-step evaluation. For example, a =…
Szabolcs
  • 24,728
  • 9
  • 85
  • 174
7
votes
1 answer

How to force zero pixel Gap between Consecutive Cells in WPF DataGrid

i am building an application in WPF for a custom need. First i opted for custom controls, but later on figured out that much of what i needed was already implemented in Datagrid Control. However there is one small glitch: The problem with Datagrid…
7
votes
3 answers

Wrap within table-cell with long word in FOP

I have a table in FOP and it is working nicely until I get a very long word. The word then overwrites the cell ending in the table. I tried the wrap-option="wrap" within the table-cell and/or the block of the cell but it doesn't work **Total…
Thevagabond
  • 323
  • 2
  • 9
  • 34
1
2 3
54 55