Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
cjhport15_gmail_com Absent Member.
Absent Member.

Binding to a Data Source when designing a Windows Form.

 I cannot see a way to do this in Visual Cobol 4.0 ( ie select fields from a database to bind to a text box or datagrid etc.  in a Form.) I know I can do this with code (I found several examples in the Knowledge Base). Is this facility supported in Form Design?. If not are there any plans to do so?. The majority of my work involves database processing via Windows or Web Forms and to have to program this for every form would be a lot of  repetitive work.

Thanks for the help



1 Reply
Micro Focus Expert
Micro Focus Expert

Re: Binding to a Data Source when designing a Windows Form.

This type of tooling to automate the binding between controls on a Windows Form and a DataSource has not been implemented for Visual COBOL in Visual Studio. The binding task is a manual one.

For C# projects you can do this by opening up a DataSource window in Visual Studio and then importing the desired tables into your project. You can then drag and drop the columns onto your forms and create the binding automatically.

I am not really sure if we have plans to implement this support within the Visual COBOL projects.

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.