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

C#

 
GeneralRe: SqlCe setup issue in C# wpf Pin
Mycroft Holmes9-Jul-13 23:04
professionalMycroft Holmes9-Jul-13 23:04 
QuestionSynchronization csv file to SQL Server 2008 R2 Database Pin
Uyen Nguyen Dinh9-Jul-13 18:42
Uyen Nguyen Dinh9-Jul-13 18:42 
AnswerRe: Synchronization csv file to SQL Server 2008 R2 Database Pin
Richard MacCutchan9-Jul-13 21:34
mveRichard MacCutchan9-Jul-13 21:34 
AnswerRe: Synchronization csv file to SQL Server 2008 R2 Database Pin
Mycroft Holmes9-Jul-13 22:49
professionalMycroft Holmes9-Jul-13 22:49 
QuestionTransactionScope in a sub class? Pin
Dominik9-Jul-13 10:36
Dominik9-Jul-13 10:36 
AnswerRe: TransactionScope in a sub class? Pin
Eddy Vluggen10-Jul-13 1:03
professionalEddy Vluggen10-Jul-13 1:03 
GeneralRe: TransactionScope in a sub class? Pin
Dominik11-Jul-13 3:04
Dominik11-Jul-13 3:04 
Questionadd yesterdays value to todays empty value Pin
lordoftrades9-Jul-13 9:53
lordoftrades9-Jul-13 9:53 
Hi
I have a loop that scan a list for missing dates in the first column, and then add those dates to complete the list. But in the second column I have values (close values for stocks), and I would like this code to add yesterdays value, typically Fridays value to Saturday and then Saturdays value to Sunday....

Does anyone know how to do this?

Here's the loop section in my code:

C#
// Find the dates that should be in table but aren't
        var DTsNotInTable = dts.Except(dt.Rows.Cast<DataRow>().Select(row1 => (DateTime)row1["date"]));

        foreach (DateTime dateTime in DTsNotInTable)
            dt.Rows.Add(dateTime, close[0]);

        // Order the results collection
        var ordered = dt.Rows.Cast<DataRow>().OrderBy(row1 => (DateTime)row1["date"]);


Kind regards
Espen
AnswerRe: add yesterdays value to todays empty value Pin
Eddy Vluggen10-Jul-13 1:03
professionalEddy Vluggen10-Jul-13 1:03 
GeneralRe: add yesterdays value to todays empty value Pin
lordoftrades10-Jul-13 1:24
lordoftrades10-Jul-13 1:24 
GeneralRe: add yesterdays value to todays empty value Pin
Eddy Vluggen10-Jul-13 6:40
professionalEddy Vluggen10-Jul-13 6:40 
GeneralRe: add yesterdays value to todays empty value Pin
lordoftrades12-Jul-13 2:23
lordoftrades12-Jul-13 2:23 
QuestionLPARAM value of the usb device Pin
Blubbo9-Jul-13 6:41
Blubbo9-Jul-13 6:41 
AnswerRe: LPARAM value of the usb device Pin
Richard MacCutchan9-Jul-13 10:13
mveRichard MacCutchan9-Jul-13 10:13 
GeneralRe: LPARAM value of the usb device Pin
Blubbo9-Jul-13 10:27
Blubbo9-Jul-13 10:27 
GeneralRe: LPARAM value of the usb device Pin
Richard MacCutchan9-Jul-13 10:50
mveRichard MacCutchan9-Jul-13 10:50 
AnswerRe: LPARAM value of the usb device Pin
Alan N10-Jul-13 4:06
Alan N10-Jul-13 4:06 
QuestionSqlLocalDB in Visual Studio2010 &2012 Pin
dharmaa.m9-Jul-13 2:35
dharmaa.m9-Jul-13 2:35 
AnswerRe: SqlLocalDB in Visual Studio2010 &2012 Pin
Dave Kreskowiak9-Jul-13 4:06
mveDave Kreskowiak9-Jul-13 4:06 
QuestionReason for no display of data in the pdf. Pin
Mausam Bharati9-Jul-13 1:41
Mausam Bharati9-Jul-13 1:41 
AnswerRe: Reason for no display of data in the pdf. Pin
Manfred Rudolf Bihy9-Jul-13 2:25
professionalManfred Rudolf Bihy9-Jul-13 2:25 
GeneralRe: Reason for no display of data in the pdf. Pin
Mausam Bharati9-Jul-13 20:58
Mausam Bharati9-Jul-13 20:58 
Questionlistview Pin
Member 99613129-Jul-13 0:56
Member 99613129-Jul-13 0:56 
AnswerRe: listview Pin
Eddy Vluggen9-Jul-13 3:07
professionalEddy Vluggen9-Jul-13 3:07 
AnswerRe: listview Pin
Jay Nardev11-Jul-13 21:01
Jay Nardev11-Jul-13 21:01 

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.