User Profile

Collapse

Profile Sidebar

Collapse
MichaelvdB
MichaelvdB
Last Activity: Apr 8 '14, 12:13 AM
Joined: Mar 19 '14
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Note: (?<contents>.*? ) -- This is a non-greedy match meaning the .* does not try to match the whole string. The RegexOptions.Si ngleline option treats the input to the Matches function as one long string instead of multiple lines.

    Code:
    Regex re = new Regex(
    "(?<header>[A-Z]{3}.[A-Z]{2}.[0-9]{10}.[0-9]{8})" +
    "(?<contents>.*?)" +
    "(?<footer>(End of Report|No EDI Activity))",
    ...
    See more | Go to post
    Last edited by MichaelvdB; Mar 19 '14, 05:30 AM. Reason: fix error caused by formatting change.

    Leave a comment:


  • MichaelvdB
    replied to Making a reference to an object
    I think what you want is data binding using objects. (Note this code is using DataGridView for the DataGrids.)

    DGData.cs (Data Model Object):
    Code:
    using System;
    using System.ComponentModel;
    
    namespace DataGridTest
    {
       class DGData
       {
          private string _name;
          public DGData(string name) {
             _name = name;
          }
    
          public static implicit operator
    ...
    See more | Go to post
    Last edited by MichaelvdB; Mar 19 '14, 04:53 AM. Reason: Technical update.

    Leave a comment:

No activity results to display
Show More
Working...