Click here to Skip to main content
15,881,898 members
Home / Discussions / C#
   

C#

 
GeneralRe: Slow function calls when no breakpoint set?! Pin
Zombies with Coffee, LLC25-Sep-02 10:24
professionalZombies with Coffee, LLC25-Sep-02 10:24 
GeneralRe: Slow function calls when no breakpoint set?! Pin
Zombies with Coffee, LLC25-Sep-02 11:09
professionalZombies with Coffee, LLC25-Sep-02 11:09 
GeneralRe: Slow function calls when no breakpoint set?! Pin
leppie26-Sep-02 7:22
leppie26-Sep-02 7:22 
QuestionHow to accessing profile settings? Pin
CherezZaboro25-Sep-02 6:26
CherezZaboro25-Sep-02 6:26 
AnswerRe: How to accessing profile settings? Pin
Mazdak25-Sep-02 6:53
Mazdak25-Sep-02 6:53 
GeneralRe: How to accessing profile settings? Pin
CherezZaboro25-Sep-02 7:02
CherezZaboro25-Sep-02 7:02 
GeneralRe: How to accessing profile settings? Pin
Mazdak25-Sep-02 23:52
Mazdak25-Sep-02 23:52 
GeneralKeeping DataTable synchronized with DataGrid after row is deleted Pin
Doug Brower25-Sep-02 4:06
Doug Brower25-Sep-02 4:06 
I wonder if someone has solved this little problem:

Situation:
1) A data grid is bound to a dataset containing one datatable. There is no backend database connection, the datatable is populated programmatically.
2) At runtime, the user highlights a row in the grid and presses the delete key, intending to delete the row of data.

Now the problem, of course, is that the data isn't really gone. It's still in the datatable. But how do I update the table? A seemingly simple answer is to add a OnRowChangedEvent hander and call AcceptChanges()

protected void OnRowChanged(object sender, DataRowChangeEventArgs args)<br />
{<br />
	dataTable1.AcceptChanges();<br />
}


but this generates a stack overflow. Does anyone have an idea what I should really be doing?

Thanks!
GeneralRe: Keeping DataTable synchronized with DataGrid after row is deleted Pin
leppie25-Sep-02 5:24
leppie25-Sep-02 5:24 
GeneralRe: Keeping DataTable synchronized with DataGrid after row is deleted Pin
Doug Brower25-Sep-02 7:33
Doug Brower25-Sep-02 7:33 
GeneralGood books or reference for Multithread programming in C# Pin
D Shen25-Sep-02 3:30
D Shen25-Sep-02 3:30 
GeneralRe: Good books or reference for Multithread programming in C# Pin
leppie25-Sep-02 5:49
leppie25-Sep-02 5:49 
GeneralRe: Good books or reference for Multithread programming in C# Pin
D Shen25-Sep-02 9:04
D Shen25-Sep-02 9:04 
GeneralConnection Strings To Db. Pin
Nick Parker25-Sep-02 2:42
protectorNick Parker25-Sep-02 2:42 
GeneralRe: Connection Strings To Db. Pin
leppie25-Sep-02 5:11
leppie25-Sep-02 5:11 
GeneralRe: Connection Strings To Db. Pin
Nick Parker25-Sep-02 17:54
protectorNick Parker25-Sep-02 17:54 
GeneralTAPI3 Telephony Pin
Harihara Subramanian25-Sep-02 2:35
Harihara Subramanian25-Sep-02 2:35 
GeneralRe: TAPI3 Telephony Pin
Ray Cassick25-Sep-02 3:47
Ray Cassick25-Sep-02 3:47 
GeneralTAPI3 Telephony with Playback Pin
Harihara Subramanian25-Sep-02 20:31
Harihara Subramanian25-Sep-02 20:31 
GeneralRe: TAPI3 Telephony with Playback Pin
Ray Cassick26-Sep-02 3:53
Ray Cassick26-Sep-02 3:53 
GeneralTree View Pin
Mazdak24-Sep-02 23:34
Mazdak24-Sep-02 23:34 
GeneralRe: Tree View Pin
leppie25-Sep-02 5:36
leppie25-Sep-02 5:36 
GeneralRe: Tree View Pin
Mazdak25-Sep-02 6:51
Mazdak25-Sep-02 6:51 
GeneralRe: Tree View Pin
leppie25-Sep-02 7:35
leppie25-Sep-02 7:35 
GeneralRe: Tree View Pin
Wjousts25-Sep-02 8:29
Wjousts25-Sep-02 8:29 

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.