title: get datatable row data & column in comma,pipe separated format
body: <p>i have C# <code>DataTable</code> in format as below</p>
  
  <pre><code>Name    Value1  Value2  Value3
  A          5       5    0
  B          6       3    1
  C          4       9    9
  </code></pre>
  
  <p>Expected format in string should be as</p>
  
  <pre><code>string sDataTableOutput = "A,B,C|Value1,5,6,4|Value2,5,3,9|Value3,0,1,9";
  </code></pre>
  
  <p>I want Column Header with data (except for first column)</p>
  
  <p>i try hard to write below code but couldnt get it done</p>
  
  <pre><code>DataTable dtGraphOutput[0] = //Get DataTable Data ; 
  
  foreach (DataColumn dcOutput in dtGraphOutput[0].Columns)
  {
      foreach (DataRow drOutput in dtGraphOutput[0].Rows)
      {                                        
          sTicketTypeCount += ((sTicketTypeCount == "") ? "" : ",") + dcOutput.ColumnName + Convert.ToString(drOutput[dcOutput]);
      }
      sTicketTypeCount += ((sTicketTypeCount == "") ? "" : "|");
  }
  </code></pre>
  
  <p>Its giving me output as</p>
  
  <pre><code>NameA,NameB,NameC|,Value15,Value16,Value14|,Value25,Value23,Value29|,Value30,Value31,Value39|
  </code></pre>