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
  • Something is not 100% right...See this: (c#)

    I found no Way for this in Cobol:

                       GridList.Add(new WPFGridZeilen()

                       {

                           GrSpalte01 = "Hello 01!,

                           GrSpalte02 = "Hello 02!,

                       }

    Here is the WPFGridZeilen Code:

          class-id WPFGridZeilen.

          working-storage section.

           01 _grso01 string.

           01 _grso02 string.

               property-id GrSpalte01 string.  

                       getter.

                       set property-value to _grso01

                       setter.

                       set _grso01 to property-value.

               end property.

               property-id GrSpalte02 string.  

                       getter.

                       set property-value to _grso02

                       setter.

                       set _grso02 to property-value.

               end property.

         end class.

Reply
  • Something is not 100% right...See this: (c#)

    I found no Way for this in Cobol:

                       GridList.Add(new WPFGridZeilen()

                       {

                           GrSpalte01 = "Hello 01!,

                           GrSpalte02 = "Hello 02!,

                       }

    Here is the WPFGridZeilen Code:

          class-id WPFGridZeilen.

          working-storage section.

           01 _grso01 string.

           01 _grso02 string.

               property-id GrSpalte01 string.  

                       getter.

                       set property-value to _grso01

                       setter.

                       set _grso01 to property-value.

               end property.

               property-id GrSpalte02 string.  

                       getter.

                       set property-value to _grso02

                       setter.

                       set _grso02 to property-value.

               end property.

         end class.

Children
No Data