|
I want to add the content of the cell of tableview in other view when i click on the tableview cell , how can i pass the values of the cell to other view.
Started by uttam on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you want.
Unexpected behavior you should extract the values from your model rather than the cell.
|
|
Hi,
I am using DataReader to write data into excelsheet cells. I have no problem until the cell has write previleges. But in one case, only one cell is readonly and the rest cells are writable.
Eg : 10 * 10 cells, only first cell is readonly. so, i shuld...
Started by Aditya on
, 3 posts
by 2 people.
Answer Snippets (Read the full thread at stackoverflow):
But in the excel template, first cell (Team Leader (required)) is readonly, so i cant write....
My eg: Team above has to be in a particular cell...
To skip writin onto a particular excel cell using C#, but couldnt get the proper logic.
|
|
How can I read a Matlab cell array stored as a .mat file and having 3*3*2 multidimensional double data into a c/c++ array ?
Started by iceman on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This doc describes the interface to read and write MAT files in C/C++:
http://www.mathworks.com.
|
Ask your Facebook Friends
|
How i can run over cells in Excel (not .csv) and read the cell values? I need to run all the cells. Thanks in advance.
Started by Gold on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
OSheet.Cells[1, 1] = "First Name using ADO.NET :
string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C.
Worksheet)oWB.ActiveSheet; //Add table headers going cell by cell.
|
|
I would like to convert an excel cell eg : A1 to 1,1 G6 to 7,6 etc
Does any one have idea for it? Note : This is required for a C# application.
Started by Thunder on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Have the cell reference in a string then you will need to use the INDIRECT function as follows.
|
|
I'm using the Aspose library to create an Excel document. Somewhere in some cell I need to insert a new line between two parts of the text.
I tried "\r\n" but it doesn't work, just displays two square symbols in cell. I can however press Alt+Enter to ...
Started by User on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
A cell containing:
A
B
...and then selecting it and executing this in the VBA immediate window:
?Asc(Mid(Activecell.Value,2,1))
So, the code you need to insert that value into another cell in VBA would ) for a line break, at least in its....
|
|
Hi, I am trying to change the format of a cell in a datagridview using the following code.
this.dataGridView[2, 1].ValueType = typeof(decimal); this.dataGridView[2, 1].Value = 500; this.dataGridView[2, 1].Style.BackColor = System.Drawing.Color.OrangeRed...
Started by Grant on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You may not need the "2" either..
I've seen, the "c" format is lowercased.
|
|
I've found questions similar on SO already, all over the net actually. Though I haven't found a working answer yet.
So I'm working in a windows form application using Visual studio 2008. Language is C#
I have a DataGridView that is not bound to a DataSource...
Started by Pieter888 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Note: "dgUsers" is the name of my DataGridView
for (int i = 0; i < .
Clearing every cell I encounter.
|
|
Hello,
I'm using a ListView in C# to make a grid. I would like to find out a way to be able to highlight a specific cell, programatically. I only need to highlight one cell.
I've experimented with Owner Drawn subitems, but using the below code, I get ...
Started by Mike Christiansen on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can do this without owner-drawing the list:
// create a new list item with a subitem that has white text on a blue background ListViewItem lvi = new ListViewItem( "item text" ); lvi.UseItemStyleForSubItems = false; lvi.SubItems.Add( new ListViewItem... .
|
|
What is the cleanest way to ask a DataGridView to return "indexes of rows that have selected cells"? This is not the same as DataGridView.SelectedRows. I don't allow Row or Column selection. So users must select blocks of cells. I just need to find out...
Started by tyndall on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
LINQ solution:
var rowIndexes = dgv.SelectedCells.Cast<DataGridViewCell>() .Select(cell =>).Distinct().ToArray();
IEnumerable<int> indexes = (from c in dataGridView1.SelectedCells.Cast.
|