cell

DataGridView Cell Index Problem

Okay I have a problem with my Windows Application. My DataGridView consists of the following columns: ProductName, Qty, Price, Subtotal. So I am assuming that the Cell Indexes of these are respectively as follows: 0, 1, 2, 3. However, whenever I try executing the code below: txtSubtotalProducts.Text = "Php " + (Convert.ToDouble(dgvProdu...

JAVA: Put Image in jTable Cell

Hi I need to display an image in one of jTable cells. I wrote this: class ImageRenderer extends DefaultTableCellRenderer { JLabel lbl = new JLabel(); public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { lbl.setText((String) valu...

Cell Padding Using CSS on an HTML Table

I need to pad just one cell in my table. I gave the td element a class and defined the class in my css file like this .itemQuantity { padding-right:30px; text-align:right; background-color: #EEE; } Padding-right does not seem to be doing anything. ...

Weird scrolling problem with UITableView

I have a sectioned UITableView which loads data from a plist file. The table uses custom cells with dynamic height to fit the content of each cell. The table loads just fine initially, but after scrolling down and back up, the cells seem to be overlaying one another in some sections. I've attached an image illustrating the issue I am h...

How do I get a callback within my TableViewCell, inherited from UITableViewCell, when the device orientation changes?

Hello, I'm in the following situation: I created my own TableViewCell (inherited from UITableViewCell) with new labels. It works really good when the device is in portrait mode (I designed the frames of the labels based on 320x480). Now the problem is when I turn the device in landscape orientation I haven't got a method which adjusts t...

Gwt VerticalPanel Cell Height

Hi, I have a horizontalpanel with 3 verticalpanels inside. In the verticalpanels there are custom widgets I need all verticalpanels has the same height (even if they have different number of widgets inside) and a button in the empty space. So, I put all panels height = 100% and the buttons height = 100%. The problem is that the vert...

MATLAB's cellfun (or arrayfun or structfun) with constant extra input argument

Hi, I want to apply a function to each element of a cell array -- so I have cellfun for that. However, the function takes two extra arguments (a string and a vector), which I want to keep constant for all the elements of the cell array; i.e. I'd like to do something like: cellfun(@myfun, cellarray, const1, const2) meaning for i=1:nu...

jqGrid Cell Editing - Double Click to Edit?

By default, if a jqGrid cell is editable, single click on that cell changes it to edit mode. Is there any way I can make it edit on a double click instead? It would make it easier to do row-level operations such as deleting, as all the columns in my grid are editable. ...

Three20 UITableViewCellStyleValue1

How do I create an item in my datasource using a cell that is UITableViewCellStyleValue1? Do I have to create my own custom cell to do it? I don't see anything in the sample catalog. thank, howie ...

How to set BackColor of a table cell dynamically with a database value?

As a bonus to the project I'm currently working on, the people would like it if I could change the background color of individual table cells depending on what their value is. So in the RadGrid_ItemDataBound event handler I have, I'm trying to set the BackColor of the cell if the cell's text equals a certain value from a dataset in my da...

Coloring a range of cells in Excel using VBA

I have a spreadsheet that I use at work to keep track of returned contracts. I've set up a color key so I can quickly glance at the sheet to see which contracts still need to be returned to us and which account manager the account belongs to. The account manager's initials are listed in column A; from there I would like to color the ...

UITableViewCell should animate the change of the state. But how??

Hi, I've got a problem with my custom UITableViewCell. I have my custom labels and want to move them aside when the delete button appear. I tried the method: -willTransitionToState: but the animations doesn't work. The change is made immediately, but not with my animation. Does anyone knows a method to use? Thank you!!! ...

Newline in datagridview cell vb.net

I'm trying to insert a new line in a cell of my datatable. When I hover the cell it shows it like it should. Everything has a new line. Otherwise in the gridview I see the string in 1 line. Dim info As String = dttopdrachten.Rows(j).Item(0).ToString & vbCrLf & dttopdrachten.Rows(j).Item(2).ToString & vbCrLf & dttopdrachten.Rows(j).Item...

iterate over database query results in vba in excel

Hi. I would like to open a connection to SQL database, and then have access to individual cells. I have an example that uses PivotTableWizard (presented below). I would like to know of a way that does not have anything to do Pivot Tables - I would like to iterate cell-by-cell. Or is this PivotTableWizard suitable for that purpose also? ...

iPhone SDK: Opening a cell with a dedicated button, not by cell tapping.

I have a simple TableView containing several cells. Normally, I switch to selected cell details by tapping this cell. But what if I need a dedicated button for every cell? I've seen "Table View Cell" properties in Interface Builder, it has what I need, but it can't be added to existing cells. How to properly add this kind of button to e...

Customize the Cursor flow / direction on pressing enter in Excel worksheet / table grid using Excel VBA

I have a column as follows : Column A---------------Column B 100 ----------------- 500 200 ----------------- 600 AA ----------------- ABCD BB ----------------- DEFG CC ----------------- FF DD ----------------- GG EE -----------------II 300 ----------------- 700 400 ----------------- 800 I want the Cursor to be present at cell location...

WPF: what object to use as a multi-cell grid which coordinates can be read from?

I need to create the following WPF application: A main window with a square grid in it. The grid should have a large amount of cells in it (for example: [1000x1000]), each cell being painted black or white. A "Robot" object should be able to walk on the grid from cell to cell. I thought of using a Uniformgrid object, but I suspect th...

iPhone: Accessing data from table cell

I'm creating a form and was wondering if anyone knows how to retrieve a UITextField value from a table cell. - (IBAction)saveForm:(id)sender { NSLog(@"TextField Value => %@", titleField.text); } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { ... switch(indexPath.section) ...

Create Protected Nodes when using webbrowser / IHTMLDocument2 in c#

Hey all, I am working a project in C# that allows the user to edit a webpage. It is using mshtml for the editor. I'm looking for a way to protect a couple of table cells. Basically they can edit everything except what is in the specified table cell. The user does not have access to the source code of the webBrowser. Thanks for any ins...

Want to use Excel2010 cell column as driver for SQL Server 2008 query

Tough to believe I'm the only one but..I want to use the Connection functionality in Excel to connect to a SQL Server database and populate column X based upon using a value in Excel column A as the primary key, but unable to find out how. I have tried (typing in the command text window) select name from pbaTable where pbaid = (and ...