Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
AnswerRe: I NEED YOUR HELP Pin
OriginalGriff29-Nov-12 20:21
mveOriginalGriff29-Nov-12 20:21 
QuestionDebugger stepping into referenced class first and bypassing parent Pin
MichCl29-Nov-12 9:27
MichCl29-Nov-12 9:27 
AnswerRe: Debugger stepping into referenced class first and bypassing parent Pin
MichCl30-Nov-12 7:49
MichCl30-Nov-12 7:49 
QuestionIframes cross domain Exception Handling---PLEASE HELP Pin
Ved Yo29-Nov-12 8:46
Ved Yo29-Nov-12 8:46 
QuestionClient Side Crystal Report Error Pin
Taskeen Asif29-Nov-12 8:16
Taskeen Asif29-Nov-12 8:16 
QuestionError2 Build failed due to validation errors in *.dbml Pin
sc steinhayse29-Nov-12 4:43
sc steinhayse29-Nov-12 4:43 
AnswerRe: Error2 Build failed due to validation errors in *.dbml Pin
Pete O'Hanlon29-Nov-12 5:00
mvePete O'Hanlon29-Nov-12 5:00 
QuestionC# Problem adding datetime columns with data in gridview Pin
Blenni29-Nov-12 2:50
Blenni29-Nov-12 2:50 
Hello!

I'm working on an application where you are able to see the chosen users outlook appointments for over 10 days. The program is supposed to be a gridview and it's supposed to loop through the users outlook for each day and add the appointments.

So far i'm getting all appointments from the selected user, but the program adds even the next days appointments in the first day.

I would be very thankful if someone could help me out with this. Maybe I'm supposed to change the loops? I'm getting all the columns created for the next 10 days.

Here's the code of my loops:

C++
List<DateTime> NAME = new List<DateTime>();




//Create a new row
DataRow drow = dt.NewRow();

for (int i = 0; i < 10; i++)
{
NAME.Add(DateTime.Now.AddDays(i));
DataColumn dcol = new DataColumn(NAME[i].ToString(), typeof(System.String));
dt.Columns.Add(dcol);

foreach (Appointment appt in findResults.Items)
{
if (NAME[i].Day == appt.Start.Day)
{ dt.Rows.Add(appt.Subject); }

}

}


I also wondering if there is some kind of way to calculate the duration of all appointment each day in minutes for example. To get the total amount of minutes of each day from the person. Is this possible?

Best regards,

Blenni

modified 29-Nov-12 9:29am.

AnswerRe: C# Problem adding datetime columns with data in gridview Pin
BobJanova29-Nov-12 3:21
BobJanova29-Nov-12 3:21 
GeneralRe: C# Problem adding datetime columns with data in gridview Pin
Blenni29-Nov-12 3:49
Blenni29-Nov-12 3:49 
GeneralRe: C# Problem adding datetime columns with data in gridview Pin
BobJanova29-Nov-12 6:05
BobJanova29-Nov-12 6:05 
GeneralRe: C# Problem adding datetime columns with data in gridview Pin
Blenni29-Nov-12 21:45
Blenni29-Nov-12 21:45 
GeneralRe: C# Problem adding datetime columns with data in gridview Pin
BobJanova29-Nov-12 23:26
BobJanova29-Nov-12 23:26 
QuestionGetting *all* controls of a form Pin
Dennis Bork28-Nov-12 23:04
Dennis Bork28-Nov-12 23:04 
AnswerRe: Getting *all* controls of a form Pin
BobJanova28-Nov-12 23:21
BobJanova28-Nov-12 23:21 
AnswerRe: Getting *all* controls of a form Pin
Richard MacCutchan28-Nov-12 23:24
mveRichard MacCutchan28-Nov-12 23:24 
GeneralRe: Getting *all* controls of a form Pin
Dennis Bork3-Dec-12 2:16
Dennis Bork3-Dec-12 2:16 
GeneralRe: Getting *all* controls of a form Pin
Richard MacCutchan3-Dec-12 2:27
mveRichard MacCutchan3-Dec-12 2:27 
AnswerRe: Getting *all* controls of a form Pin
J4amieC28-Nov-12 23:25
J4amieC28-Nov-12 23:25 
AnswerRe: Getting *all* controls of a form Pin
Pete O'Hanlon28-Nov-12 23:27
mvePete O'Hanlon28-Nov-12 23:27 
GeneralRe: Getting *all* controls of a form Pin
J4amieC29-Nov-12 3:22
J4amieC29-Nov-12 3:22 
GeneralRe: Getting *all* controls of a form Pin
Pete O'Hanlon29-Nov-12 3:24
mvePete O'Hanlon29-Nov-12 3:24 
QuestionC# GUI Controlling An External Device Pin
C-P-User-328-Nov-12 15:25
C-P-User-328-Nov-12 15:25 
AnswerRe: C# GUI Controlling An External Device Pin
OriginalGriff28-Nov-12 23:05
mveOriginalGriff28-Nov-12 23:05 
GeneralRe: C# GUI Controlling An External Device Pin
C-P-User-329-Nov-12 5:33
C-P-User-329-Nov-12 5:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.