Datatable access
Visual C++ 2005 in CLI environment created the code below:
this->Query_in_ForzaTableAdapter->Fill(this->_PF2000_rev_1_2DataSet->Query_in_Forza);
this line fills the table Query_in_Forza automatically. I've checked it in debug time, looking at the value contained by:
_PF2000_rev_1_2DataSet->Query_in_Forza->CognomeColumn[1]
.. and it works.
Now, I'd like to use these values to fill the column titles of an unbounded DataGridView but, at compile time, I get the following errors:
1> : error C2660: 'PF_manager::_PF2000_rev_1_2DataSet::Query_in_Forz aDataTable::CognomeColumn::get' : function does not take 1 arguments
1> : error C3767: 'System::Data::DataColumn::default::get': candidate function(s) not accessible
1> : error C2660: 'System::Data::DataColumn::default::get' : function does not take 0 arguments
Why I can access these data at runtime, thruogh debugging, and I got an error at compile time if I try to do the same?
Thanks,
Walter
W.R.
|