Public Class for a WPF Data Grid

Hi I Need a public Method like this in C#:

    public class WPFGridZeilen     {         public string GrSp01 { get; set; }         public string GrSp02 { get; set; }     }

It's a public Class in a C# EXE File

And with this i can get/set Data in a WPF DataGrid...

 

Parents
  • The 2.2 version of Visual COBOL does have support for property initialization as part of a 'new' expression.

    Try something like:

          01 o type WPFGridZeilen.

          set o to new WPFGridZeilen(property GrSpalte01 = "Hello 01"

                                     property GrSpalte02 = "Hello 02")

              display o::GrSpalte01

              display o::GrSpalte02

Reply
  • The 2.2 version of Visual COBOL does have support for property initialization as part of a 'new' expression.

    Try something like:

          01 o type WPFGridZeilen.

          set o to new WPFGridZeilen(property GrSpalte01 = "Hello 01"

                                     property GrSpalte02 = "Hello 02")

              display o::GrSpalte01

              display o::GrSpalte02

Children
No Data