i have a table in my database that indicate a "rendez-vous". I have a MA and Hours columns. The MA's column is used to indicate if it's the morning or the afternoon: 1 or 2, 1 for morning, 2 for afternoon. (I can't change the database).
Here is a sample of a result:
Hours | MA |Name
10:00:00 | 1 | Robert
10:30:00 | 1 | Jane
11:15:00 | 1 | John
14:00:00 | 2 | Stewart
14:15:00 | 2 | Elton
I put it in a datatable:
dt = myCon.SelectDataTable(query);
Then i binded it to the list:
lstGCCCandidatCreneau.ItemsSource = dt.DefaultView;
But before to do that i would like to insert a blank row between the morning and the afternoon. I would like something like this displayed in the list:
Hours | MA |Name
10:00:00 | 1 | Robert
10:30:00 | 1 | Jane
11:15:00 | 1 | John
14:00:00 | 2 | Stewart
14:15:00 | 2 | Elton
Can i have your help please?
Thanks a lot.
Alex