Hi Bob Swart,

Thanks for the reply, I have an application that need to be migrated
from WinForms to VCL.Net (Requirement is that) which uses Winform
standard controls as well as 3rd party controls. 

I found this article from Borland by John Kaster
(http://bdn.borland.com/article/0,1410,31886,00.html) and I exactly
followed the same steps. Now everything works fine, I can see the
control and place it on a form, but when I tried to associate a
Dataset(ADO.Net DataTable) to Datasource property of the imported
Datagrid (TImpDataGrid) it does not show any error, but data is not seen
in the Datagrid (TImpDataGrid).

Have any one tried using "WinForm Control Import Wizard" and found
imported control works fine w.r.t data connectivity?

For Information : I am using BDS2006 update 2.

Thanks & Rgds,
R.Saravanan 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob Swart
Sent: Friday, October 13, 2006 5:16 PM
To: Delphi-Talk Discussion List
Subject: Re: Using WinForm controls in VCL .NET applications

Hi Ramalingam, Saravanan,

> I used "WinForm Control Import Wizard" to import winform's DataGrid 
> component and it works fine, I can see the control and place it on a 
> form, but when I tried to put data in it, it does not work.

Why do you want to use ADO.NET data access technology as well as the
.NET DataGrid inside a VCL for .NET Form? If you want to show the data
from the ADO.NET components, why not use the TADONETConnector and the
VCL for .NET TDBGrid instead? (on the VCL for .NET form)...

> This code connects to the Database and get the data but it is not 
> shown in the DataGrid control (TImpDataGrid).

I reckon it will work if you put the DataGrid as well as the ADO.NET
components on a WinForm instead of a VCL for .NET form...

> R.Saravanan

Groetjes,
           Bob Swart

--
Bob Swart Training & Consultancy (eBob42.com)  Forever Loyal to Delphi
Blog: http://www.drbob42.com/blog - RSS: http://drbob42.com/weblog.xml
New Delphi 2006 Courseware e-books at http://www.eBob42.com/courseware
__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk
__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to