I used this code to flip data ,column as rows ,may this idea will help you in windows application using c#
Globaldata.SQLQuery = "select * from table"
OdbcDataAdapter first = new OdbcDataAdapter(Globaldata.SQLQuery, con);
DataTable oldTable = ds.Tables.Add("first");
first.Fill(ds, "first");
DataTable firsttable = new DataTable();
firsttable.Columns.Add("Parametere");
for (int i = 0; i < oldTable.Rows.Count; i++)
firsttable.Columns.Add("Values"+i);
for (int i = 0; i < oldTable.Columns.Count; i++)
{
DataRow newRow = firsttable.NewRow();
newRow[0] = oldTable.Columns[i].Caption;
for (int j = 0; j < oldTable.Rows.Count; j++)
newRow[j+1] = oldTable.Rows[j][i];
firsttable.Rows.Add(newRow);
}
ds.Tables.Remove(oldTable);
ds.Tables.Add(firsttable);