Wrox Programmer Forums
|
Visual C++ 2005 For discussion of Visual C++ 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 23rd, 2007, 10:06 AM
Registered User
 
Join Date: Aug 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the value from the DataTable column Dmitriy Pro VB 6 4 March 30th, 2010 08:58 AM
Datatable Limno .NET Framework 1.x 0 May 28th, 2008 02:37 PM
Datagrid + datatable edukulla C# 2005 2 September 11th, 2006 04:53 PM
how to use DataTable.Select Salte C# 2 December 22nd, 2004 04:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.