Click here to Skip to main content
16,021,285 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Generics problem Pin
Ghydo24-Apr-10 22:23
Ghydo24-Apr-10 22:23 
QuestionPassing structure form VC++ to C# Dll Pin
Anu_Bala14-Apr-10 19:05
Anu_Bala14-Apr-10 19:05 
AnswerRe: Passing structure form VC++ to C# Dll Pin
Andreoli Carlo16-Apr-10 0:27
professionalAndreoli Carlo16-Apr-10 0:27 
QuestionWindows CE 6.0 Pin
jashimu13-Apr-10 5:14
jashimu13-Apr-10 5:14 
Questiontrying to print a rtf file Pin
davesmith2349-Apr-10 20:20
davesmith2349-Apr-10 20:20 
AnswerRe: trying to print a rtf file Pin
Luc Pattyn9-Apr-10 23:38
sitebuilderLuc Pattyn9-Apr-10 23:38 
GeneralRe: trying to print a rtf file Pin
davesmith23410-Apr-10 15:49
davesmith23410-Apr-10 15:49 
QuestionDataGridView in Managed c++ Pin
VCsamir9-Apr-10 2:44
VCsamir9-Apr-10 2:44 
hi friends,
i want to use datagridview in c++, i am using data binding. i add object list to binding and use this binding as data source to gridview. then i set the the dataPropertyName as the member of the object.

my problem is i am not able to view my data in the grid. at runtime i want to add objects to the binding so that they can be viewed in the grid.

my code is as below
//bs is the binding object
for(int j = 0; j< CustInfo.oCust->Customer->Count;j++)

bs->Add(gcnew CustomerDetails(custobject));



CustGridView->DataSource = bs;



DataGridViewColumn^ column1 = gcnew DataGridViewTextBoxColumn();

column1->DataPropertyName = "m_strName"; // member of CustomerDetails

column1->Name = "Name";

column1->Width = 227;

CustGridView->Columns->Add(column1);



DataGridViewColumn^ column2 = gcnew DataGridViewTextBoxColumn();

column2->DataPropertyName = "m_strStreet"; //// member of CustomerDetails

column2->Name = "Street";

column2->Width = 120;

CustGridView->Columns->Add(column2);

can any one help

thanks in anticipation

Regds
Samir
QuestionHow to call a method on another form Pin
KlaasVersteeg8-Apr-10 4:59
KlaasVersteeg8-Apr-10 4:59 
AnswerRe: How to call a method on another form Pin
Andreoli Carlo13-Apr-10 0:41
professionalAndreoli Carlo13-Apr-10 0:41 
GeneralRe: How to call a method on another form Pin
KlaasVersteeg13-Apr-10 1:31
KlaasVersteeg13-Apr-10 1:31 
GeneralRe: How to call a method on another form Pin
Andreoli Carlo13-Apr-10 2:22
professionalAndreoli Carlo13-Apr-10 2:22 
GeneralRe: How to call a method on another form Pin
KlaasVersteeg13-Apr-10 2:25
KlaasVersteeg13-Apr-10 2:25 
Questionobject to string (with 15 digit precision if decimal) [modified] Pin
T21028-Apr-10 4:49
T21028-Apr-10 4:49 
AnswerRe: object to string (with 15 digit precision if decimal) Pin
Andreoli Carlo13-Apr-10 0:39
professionalAndreoli Carlo13-Apr-10 0:39 
QuestionInvoking Event Handlers Programmatically? Pin
TheBerk7-Apr-10 11:18
TheBerk7-Apr-10 11:18 
AnswerRe: Invoking Event Handlers Programmatically? Pin
Andreoli Carlo7-Apr-10 23:04
professionalAndreoli Carlo7-Apr-10 23:04 
GeneralRe: Invoking Event Handlers Programmatically? Pin
TheBerk8-Apr-10 3:55
TheBerk8-Apr-10 3:55 
GeneralRe: Invoking Event Handlers Programmatically? Pin
Andreoli Carlo8-Apr-10 20:54
professionalAndreoli Carlo8-Apr-10 20:54 
AnswerRe: Invoking Event Handlers Programmatically? Pin
Luc Pattyn8-Apr-10 4:52
sitebuilderLuc Pattyn8-Apr-10 4:52 
GeneralRe: Invoking Event Handlers Programmatically? Pin
TheBerk8-Apr-10 5:05
TheBerk8-Apr-10 5:05 
GeneralRe: Invoking Event Handlers Programmatically? Pin
Luc Pattyn8-Apr-10 5:15
sitebuilderLuc Pattyn8-Apr-10 5:15 
QuestionHow to unload mixed-mode MFC assembly loaded in AppDomain Pin
catrill5-Apr-10 17:31
catrill5-Apr-10 17:31 
Questionunable to call function in CLI/C++ dll from native C++, when linked Explicitly Pin
Cherry_manju4-Apr-10 23:51
Cherry_manju4-Apr-10 23:51 
AnswerRe: unable to call function in CLI/C++ dll from native C++, when linked Explicitly Pin
N a v a n e e t h5-Apr-10 15:44
N a v a n e e t h5-Apr-10 15:44 

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.