Click here to Skip to main content
15,920,670 members
Home / Discussions / C#
   

C#

 
GeneralRe: Launch an .exe from aspx page Pin
puzzlehacker9-Jun-03 15:38
puzzlehacker9-Jun-03 15:38 
GeneralRe: Launch an .exe from aspx page Pin
eggie510-Jun-03 4:50
eggie510-Jun-03 4:50 
GeneralGet Contant of a field in DataGrid with JavaScript. Pin
avsarm9-Jun-03 10:13
avsarm9-Jun-03 10:13 
GeneralAcceptChanges for DataRow Pin
DionChen9-Jun-03 8:34
DionChen9-Jun-03 8:34 
GeneralRe: AcceptChanges for DataRow Pin
Rocky Moore9-Jun-03 9:05
Rocky Moore9-Jun-03 9:05 
GeneralRe: AcceptChanges for DataRow Pin
krisp9-Jun-03 12:28
krisp9-Jun-03 12:28 
GeneralRe: AcceptChanges for DataRow Pin
DionChen9-Jun-03 15:44
DionChen9-Jun-03 15:44 
GeneralRe: AcceptChanges for DataRow Pin
krisp9-Jun-03 16:15
krisp9-Jun-03 16:15 
OK, this has to work, your iterating through each of the rows in your table, and you are not changing a collection... the foreach statements relies on a collection, but not an integer indexer, so...

you should be able to copy and paste this

<br />
for( int i = 0; i < dsMain1.Tables["LMCables"].Rows.Count; ++i )<br />
{<br />
    // better than comparing with the ToString() and "Deleted"<br />
    if( dsMain1.Tables["LMCables"].Rows[ i ].RowState == System.Data.RowState.Deleted )<br />
    {<br />
        dsMain1.Tables["LMCables"].Rows[ i ].AcceptChanges();<br />
    }<br />
}<br />


haha, after i typed that out i pressed ctrl+shift+b to build it.
QuestionExtracting subitems from a listview? Pin
Manster9-Jun-03 8:21
Manster9-Jun-03 8:21 
AnswerRe: Extracting subitems from a listview? Pin
shaunAustin9-Jun-03 9:04
shaunAustin9-Jun-03 9:04 
GeneralRe: Extracting subitems from a listview? Pin
Manster9-Jun-03 10:12
Manster9-Jun-03 10:12 
GeneralRe: Extracting subitems from a listview? Pin
shaunAustin9-Jun-03 12:54
shaunAustin9-Jun-03 12:54 
GeneralColorDialog Location Pin
patnsnaudy9-Jun-03 7:24
patnsnaudy9-Jun-03 7:24 
GeneralRe: ColorDialog Location Pin
Rocky Moore9-Jun-03 9:36
Rocky Moore9-Jun-03 9:36 
GeneralRe: ColorDialog Location Pin
patnsnaudy9-Jun-03 11:12
patnsnaudy9-Jun-03 11:12 
GeneralRe: ColorDialog Location Pin
Rocky Moore9-Jun-03 17:13
Rocky Moore9-Jun-03 17:13 
GeneralRe: ColorDialog Location Pin
patnsnaudy10-Jun-03 2:41
patnsnaudy10-Jun-03 2:41 
GeneralDeriving from System.Drawing.Image troubles... Pin
Mike Zinni9-Jun-03 7:22
Mike Zinni9-Jun-03 7:22 
GeneralRe: Deriving from System.Drawing.Image troubles... Pin
krisp9-Jun-03 12:22
krisp9-Jun-03 12:22 
Generalusing unmanaged c in c# Pin
Courtney Layne9-Jun-03 6:22
sussCourtney Layne9-Jun-03 6:22 
GeneralRe: using unmanaged c in c# Pin
Ranjan Banerji9-Jun-03 6:32
Ranjan Banerji9-Jun-03 6:32 
GeneralRe: using unmanaged c in c# Pin
Nathan Blomquist9-Jun-03 7:25
Nathan Blomquist9-Jun-03 7:25 
GeneralRe: using unmanaged c in c# Pin
clayne10-Jun-03 6:23
clayne10-Jun-03 6:23 
GeneralRe: using unmanaged c in c# Pin
Nathan Blomquist10-Jun-03 11:27
Nathan Blomquist10-Jun-03 11:27 
GeneralExtending C# XML comment feature. Pin
Donald_a9-Jun-03 2:12
Donald_a9-Jun-03 2:12 

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.