Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
AnswerRe: XML Deserialisation to an inherited class type based on an XML attribute [modified] Pin
Clive D. Pottinger23-Jul-09 5:57
Clive D. Pottinger23-Jul-09 5:57 
Questionread registry value from XML file and find it into the the registry?????can anybody help me. Pin
janeeta23-Jul-09 4:07
janeeta23-Jul-09 4:07 
QuestionProcess Enumeration loop Pin
Haydn01223-Jul-09 4:06
Haydn01223-Jul-09 4:06 
AnswerRe: Process Enumeration loop Pin
DoctorMick23-Jul-09 5:23
DoctorMick23-Jul-09 5:23 
GeneralRe: Process Enumeration loop [modified] Pin
Haydn01223-Jul-09 5:29
Haydn01223-Jul-09 5:29 
QuestionDataTable.Select() PRoblem Pin
jonhbt23-Jul-09 3:12
jonhbt23-Jul-09 3:12 
AnswerRe: DataTable.Select() PRoblem PinPopular
Tom Deketelaere23-Jul-09 3:19
professionalTom Deketelaere23-Jul-09 3:19 
GeneralRe: DataTable.Select() PRoblem Pin
jonhbt23-Jul-09 3:25
jonhbt23-Jul-09 3:25 
Sry for that I didn't want to cause any problems the code that I am using is this

   DataTable dtAllEmps = new DataTable();<br />
                dtAllEmps = cetData.GetALLEmployessByDate(conString, sensors);<br />
<br />
<br />
                foreach (DataRow dataRow in dtAllEmps.Rows)<br />
                {<br />
                    if(dtCSV.Rows.Count == 0)<br />
                    {<br />
                        DataRow newRow = dtCSV.NewRow();<br />
                        newRow["UserID"] = dataRow["USERID"];<br />
                        newRow["Department"] = dataRow["DEPTNAME"];<br />
                        newRow["Date"] = dataRow["CHECKTIME"];<br />
                        newRow["Name"] = dataRow["NAME"];<br />
                        newRow["CheckType"] = dataRow["CHECKTYPE"];<br />
                        dtCSV.Rows.Add(newRow);<br />
                    }<br />
                    else<br />
                    {<br />
                        Console.WriteLine("User ID " + dataRow["USERID"].ToString());<br />
                        if (dataRow["USERID"].ToString() != "")<br />
                        {<br />
                            string strExpr = "UserID = " + dataRow["USERID"].ToString();<br />
                            Console.WriteLine("Expression " + strExpr);<br />
                            DataRow[] filteredRows = dtCSV.Select(strExpr);<br />
                           <br />
                            <br />
                            if (filteredRows.Count() == 1)<br />
                            {<br />
                                Console.WriteLine("Number of Rows  " + filteredRows.Count().ToString());<br />
                                DataRow csvRow = filteredRows[0];<br />
                                DateTime csvDate = Convert.ToDateTime(csvRow["Date"]);<br />
                                DateTime tableDate = Convert.ToDateTime(dataRow["CHECKTIME"]);<br />
                                Console.WriteLine("csvDate" + csvRow["Date"].ToString());<br />
                                Console.WriteLine("tableDate" + dataRow["CHECKTIME"].ToString());<br />
                                if (csvDate < tableDate)<br />
                                {<br />
                                    filteredRows[0]["Date"] = tableDate.ToString();<br />
                                    filteredRows[0]["CheckType"] = dataRow["CHECKTYPE"].ToString();<br />
                                    filteredRows[0]["Department"] = dataRow["DEPTNAME"].ToString();<br />
                                }<br />

GeneralRe: DataTable.Select() PRoblem Pin
jonhbt23-Jul-09 3:27
jonhbt23-Jul-09 3:27 
GeneralRe: DataTable.Select() PRoblem Pin
Tom Deketelaere23-Jul-09 3:40
professionalTom Deketelaere23-Jul-09 3:40 
GeneralRe: DataTable.Select() PRoblem Pin
jonhbt23-Jul-09 3:51
jonhbt23-Jul-09 3:51 
GeneralRe: DataTable.Select() PRoblem Pin
Tom Deketelaere23-Jul-09 4:03
professionalTom Deketelaere23-Jul-09 4:03 
GeneralRe: DataTable.Select() PRoblem Pin
jonhbt23-Jul-09 4:20
jonhbt23-Jul-09 4:20 
GeneralRe: DataTable.Select() PRoblem Pin
Tom Deketelaere23-Jul-09 4:29
professionalTom Deketelaere23-Jul-09 4:29 
GeneralRe: DataTable.Select() PRoblem Pin
jonhbt23-Jul-09 4:43
jonhbt23-Jul-09 4:43 
GeneralRe: DataTable.Select() PRoblem Pin
Tom Deketelaere23-Jul-09 5:01
professionalTom Deketelaere23-Jul-09 5:01 
AnswerRe: DataTable.Select() PRoblem Pin
jonhbt23-Jul-09 5:27
jonhbt23-Jul-09 5:27 
GeneralRe: DataTable.Select() PRoblem Pin
MumbleB23-Jul-09 3:36
MumbleB23-Jul-09 3:36 
GeneralRe: DataTable.Select() PRoblem Pin
jonhbt23-Jul-09 3:43
jonhbt23-Jul-09 3:43 
QuestionBorder Less Window Mouse Left click Pin
satsumatable23-Jul-09 2:45
satsumatable23-Jul-09 2:45 
AnswerRe: Border Less Window Mouse Left click Pin
shlomtzi23-Jul-09 2:52
shlomtzi23-Jul-09 2:52 
GeneralRe: Border Less Window Mouse Left click Pin
satsumatable23-Jul-09 2:57
satsumatable23-Jul-09 2:57 
GeneralRe: Border Less Window Mouse Left click Pin
shlomtzi23-Jul-09 3:04
shlomtzi23-Jul-09 3:04 
AnswerRe: Border Less Window Mouse Left click Pin
Henry Minute23-Jul-09 3:25
Henry Minute23-Jul-09 3:25 
GeneralRe: Border Less Window Mouse Left click Pin
satsumatable23-Jul-09 5:13
satsumatable23-Jul-09 5:13 

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.