Click here to Skip to main content
15,896,154 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionListview horizontal scroll bar Pin
kani9819-Sep-07 13:37
kani9819-Sep-07 13:37 
AnswerRe: Listview horizontal scroll bar Pin
Mark Salsbery19-Sep-07 15:10
Mark Salsbery19-Sep-07 15:10 
GeneralRe: Listview horizontal scroll bar Pin
kani9820-Sep-07 8:52
kani9820-Sep-07 8:52 
GeneralRe: Listview horizontal scroll bar Pin
Mark Salsbery20-Sep-07 9:06
Mark Salsbery20-Sep-07 9:06 
GeneralRe: Listview horizontal scroll bar Pin
Mark Salsbery20-Sep-07 9:14
Mark Salsbery20-Sep-07 9:14 
QuestionHow do you populate DataGridControl cell? Pin
BuckBrown19-Sep-07 11:52
BuckBrown19-Sep-07 11:52 
AnswerRe: How do you populate DataGridControl cell? Pin
George L. Jackson19-Sep-07 13:59
George L. Jackson19-Sep-07 13:59 
GeneralRe: How do you populate DataGridControl cell? Pin
BuckBrown20-Sep-07 9:45
BuckBrown20-Sep-07 9:45 
Hi George,

This isn't working for me too well. I keep getting array bounding errors. Your example is much like what I have seen where you start with some number of colums but no rows or cells. What I have done is pre-define the number of rows and columns like this...

dataGridView1->RowCount = 150;
dataGridView1->ColumnCount = 120;
myArray = gcnew array<celllocation^, 2="">(dataGridView1->RowCount, dataGridView1->ColumnCount);

for(int i = 0; i < dataGridView1->RowCount; i++)
for(int j = 0; j < dataGridView1->ColumnCount; j++)
{
dataGridView1->Columns[j]->Width = 8;
dataGridView1->Rows[i]->Height = 6;
}

This code will display a 120 column by 150 column grid (although it does take 10 seconds to display) which is what I want, but how do I navigate it? It would be intuitive to do something like...

dataGridView1(cell_row_value, cell_cloumn_value) = what goes into the cell

but that doesn't work. It seems I have to use the Cell->Value property but I have to set the (row, col) coordinates of the cell and I can only set the coordinates with a DataGridViewCell^ data type and I can't instantiate a DataGridViewCell^ because it's abstract. I can't figure out how to say 'Make the current cell the cell at row coordinate X and column coordinate Y'. This is what I need to know.

Thanks


Buck
GeneralRe: How do you populate DataGridControl cell? [modified] Pin
George L. Jackson20-Sep-07 12:22
George L. Jackson20-Sep-07 12:22 
GeneralRe: How do you populate DataGridControl cell? Pin
BuckBrown20-Sep-07 9:47
BuckBrown20-Sep-07 9:47 
AnswerRe: How do you populate DataGridControl cell? Pin
George L. Jackson20-Sep-07 13:07
George L. Jackson20-Sep-07 13:07 
QuestionInsertion of Smiley Faces in Rich Edit Control Pin
_Shiva19-Sep-07 1:58
_Shiva19-Sep-07 1:58 
AnswerRe: Insertion of Smiley Faces in Rich Edit Control Pin
Giorgi Dalakishvili19-Sep-07 2:43
mentorGiorgi Dalakishvili19-Sep-07 2:43 
QuestionHow to use System::Xml namespace in an MFC application? Pin
Rocky#18-Sep-07 18:13
Rocky#18-Sep-07 18:13 
AnswerRe: How to use System::Xml namespace in an MFC application? Pin
George L. Jackson18-Sep-07 23:46
George L. Jackson18-Sep-07 23:46 
GeneralRe: How to use System::Xml namespace in an MFC application? Pin
Rocky#20-Sep-07 18:07
Rocky#20-Sep-07 18:07 
QuestionRe: How to use System::Xml namespace in an MFC application? Pin
Rocky#20-Sep-07 20:15
Rocky#20-Sep-07 20:15 
GeneralRe: How to use System::Xml namespace in an MFC application? Pin
Rocky#20-Sep-07 20:42
Rocky#20-Sep-07 20:42 
Questionis it possible to read the output from exe file in c++? Pin
Wajid Ali18-Sep-07 10:16
Wajid Ali18-Sep-07 10:16 
AnswerRe: is it possible to read the output from exe file in c++? Pin
Mark Salsbery18-Sep-07 10:28
Mark Salsbery18-Sep-07 10:28 
GeneralRe: is it possible to read the output from exe file in c++? Pin
Wajid Ali18-Sep-07 10:48
Wajid Ali18-Sep-07 10:48 
AnswerRe: is it possible to read the output from exe file in c++? Pin
Hamid_RT18-Sep-07 19:51
Hamid_RT18-Sep-07 19:51 
QuestionMissing Manifest Resource Exception Pin
Programm3r18-Sep-07 1:50
Programm3r18-Sep-07 1:50 
QuestionI have a stumper on Forms Designer Pin
BuckBrown17-Sep-07 5:18
BuckBrown17-Sep-07 5:18 
GeneralRe: I have a stumper on Forms Designer Pin
George L. Jackson17-Sep-07 12:36
George L. Jackson17-Sep-07 12:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.