Click here to Skip to main content
15,920,688 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: how to load the previously hidden form in C# Pin
Keith Malwitz21-Dec-06 2:02
Keith Malwitz21-Dec-06 2:02 
GeneralRe: how to load the previously hidden form in C# Pin
Christian Graus21-Dec-06 19:40
protectorChristian Graus21-Dec-06 19:40 
QuestionList.BinarySearch results... Pin
Paul Selormey20-Dec-06 23:55
Paul Selormey20-Dec-06 23:55 
AnswerRe: List.BinarySearch results... Pin
Pete O'Hanlon21-Dec-06 0:54
mvePete O'Hanlon21-Dec-06 0:54 
GeneralRe: List.BinarySearch results... Pin
Paul Selormey21-Dec-06 19:33
Paul Selormey21-Dec-06 19:33 
AnswerRe: List.BinarySearch results.. Pin
Tarakeshwar Reddy21-Dec-06 0:58
professionalTarakeshwar Reddy21-Dec-06 0:58 
GeneralRe: List.BinarySearch results.. Pin
Paul Selormey21-Dec-06 19:34
Paul Selormey21-Dec-06 19:34 
Questionis the dataview being updated as I modify it? Pin
JoeRip20-Dec-06 23:29
JoeRip20-Dec-06 23:29 
In the following code, I use a a DataView to find all the records in my table that meet criteria X. I then change the value in the DataRowView so that they no longer meet criteria X.

After I change a couple of DataRowViews, I get an exception that my index is out of range. It looks like the DataView object is updating the Table, and re-evaluating the RowFilter criteria, and updating itself. So, there's now less DataRowViews in my DataView, and my index is incorrect.

Can that really be happening? Are you not supposed to modify the DataView? Or should I be locking it somehow?

private void ClearCurrentSetInPlayistTable()
{
// goes through the Libraries And Playlists Table, setting
// any playlist whose IsInCurrentSet col value is true, to false

DataView dv = new DataView(dtLibrariesAndPlaylists);
string strRowFilter = IsInCurrentSet + " = true";
dv.RowFilter = strRowFilter;
int dvRowCount = dv.Count;

for (int i = 0; i < dvRowCount; i++)
{
DataRowView drv = dv[i];
drv[IsInCurrentSet] = false;
}
}

Thanks,

Joe
AnswerRe: is the dataview being updated as I modify it? Pin
JoeRip21-Dec-06 10:44
JoeRip21-Dec-06 10:44 
QuestionHow do I handle events for dropdown menu items created on the fly? Pin
JoeRip20-Dec-06 20:43
JoeRip20-Dec-06 20:43 
AnswerRe: How do I handle events for dropdown menu items created on the fly? Pin
Tarakeshwar Reddy20-Dec-06 21:11
professionalTarakeshwar Reddy20-Dec-06 21:11 
GeneralRe: How do I handle events for dropdown menu items created on the fly? Pin
JoeRip20-Dec-06 21:21
JoeRip20-Dec-06 21:21 
GeneralRe: How do I handle events for dropdown menu items created on the fly? Pin
Tarakeshwar Reddy20-Dec-06 21:30
professionalTarakeshwar Reddy20-Dec-06 21:30 
GeneralRe: How do I handle events for dropdown menu items created on the fly? Pin
JoeRip20-Dec-06 21:49
JoeRip20-Dec-06 21:49 
GeneralRe: How do I handle events for dropdown menu items created on the fly? Pin
Tarakeshwar Reddy20-Dec-06 22:00
professionalTarakeshwar Reddy20-Dec-06 22:00 
QuestionSharing data across threads Pin
Hendrik Debedts20-Dec-06 4:09
Hendrik Debedts20-Dec-06 4:09 
AnswerRe: Sharing data across threads Pin
Keith Malwitz20-Dec-06 6:03
Keith Malwitz20-Dec-06 6:03 
GeneralRe: Sharing data across threads Pin
Hendrik Debedts20-Dec-06 23:35
Hendrik Debedts20-Dec-06 23:35 
QuestionShockwave Flash Component in visual studio 2005 Pin
morteza5719-Dec-06 23:37
morteza5719-Dec-06 23:37 
QuestionGetting reference of calling Assembly. Pin
Syed Muhammad Kamran19-Dec-06 18:55
Syed Muhammad Kamran19-Dec-06 18:55 
GeneralRe: Getting reference of calling Assembly. Pin
Guffa19-Dec-06 19:17
Guffa19-Dec-06 19:17 
QuestionExecutionContext Pin
Hendrik Debedts19-Dec-06 12:19
Hendrik Debedts19-Dec-06 12:19 
QuestionDetermining Memory Footprint of a filled Dataset Pin
Keith Malwitz19-Dec-06 6:25
Keith Malwitz19-Dec-06 6:25 
QuestionARCHITECTURAL DIFFERENCE between .net 1.0 and 2.0? Pin
karam chandrabose19-Dec-06 0:40
karam chandrabose19-Dec-06 0:40 
AnswerRe: ARCHITECTURAL DIFFERENCE between .net 1.0 and 2.0? Pin
Paul Conrad19-Dec-06 5:59
professionalPaul Conrad19-Dec-06 5:59 

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.