Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
Y

yandroide

@yandroide
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • C# shuffle one column out of two
    Y yandroide

    Hi, I am having trouble shuffling a column out of two. This is my original table below in Ms Access.

    ID_EMPLOYEE ID_STATION
    ALAD DECH
    FRED DECI
    MIKE ORR
    PAM OR
    RAK ORW
    RAYN PROC

    I would like to shuffle ID_STATION and have something different at every run. For example:

    ID_EMPLOYEE ID_STATION
    ALAD ORW
    FRED PROC
    MIKE DECI
    PAM DECH
    RAK OR
    RAYN ORR

    I am using visual studio 2012 with c#. I created a List called scheduleList in my class SCHEDULE which contains properties like sEmployeeID and sStationID . I fill the list as follow:

    List scheduleList = new List();
    //Populating Schedulelist from database
    foreach (DataRow row2 in tschedule.Rows)
    {
    sEmployeeID = row2["ID_EMPLOYEE"].ToString();
    sStationID = row2["ID_STATION"].ToString();
    scheduleList.Add(new SCHEDULE(sEmployeeID, sStationID));
    }

    All I want now is a code to shuffle my ID_STATION only.

    C# csharp database visual-studio tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups