Click here to Skip to main content
15,907,329 members
Home / Discussions / C#
   

C#

 
QuestionAssign Color to text in Rich Textbox Pin
Sajjad Leo16-Mar-09 1:58
Sajjad Leo16-Mar-09 1:58 
AnswerRe: Assign Color to text in Rich Textbox Pin
Blue_Boy16-Mar-09 2:08
Blue_Boy16-Mar-09 2:08 
AnswerRe: Assign Color to text in Rich Textbox Pin
AB777116-Mar-09 2:10
AB777116-Mar-09 2:10 
Questionhow to Merge two datatables in a dataset Pin
Nitin K16-Mar-09 1:40
Nitin K16-Mar-09 1:40 
AnswerRe: how to Merge two datatables in a dataset Pin
Russell Jones16-Mar-09 1:42
Russell Jones16-Mar-09 1:42 
GeneralRe: how to Merge two datatables in a dataset Pin
Nitin K16-Mar-09 1:51
Nitin K16-Mar-09 1:51 
GeneralRe: how to Merge two datatables in a dataset Pin
Russell Jones16-Mar-09 1:56
Russell Jones16-Mar-09 1:56 
QuestionAny idea why this error appears (SEH Exception) Pin
Matjaz-xyz16-Mar-09 1:31
Matjaz-xyz16-Mar-09 1:31 
AnswerRe: Any idea why this error appears (SEH Exception) Pin
Michael Bookatz16-Mar-09 1:38
Michael Bookatz16-Mar-09 1:38 
AnswerRe: Any idea why this error appears (SEH Exception) Pin
Giorgi Dalakishvili16-Mar-09 2:29
mentorGiorgi Dalakishvili16-Mar-09 2:29 
GeneralRe: Any idea why this error appears (SEH Exception) Pin
Matjaz-xyz17-Mar-09 3:35
Matjaz-xyz17-Mar-09 3:35 
QuestionApplication.Idle Event Pin
saksp16-Mar-09 0:02
saksp16-Mar-09 0:02 
AnswerRe: Application.Idle Event Pin
DaveyM6916-Mar-09 0:20
professionalDaveyM6916-Mar-09 0:20 
AnswerRe: Application.Idle Event Pin
#realJSOP16-Mar-09 2:34
professional#realJSOP16-Mar-09 2:34 
QuestionTransparent through the label Pin
CodingLover15-Mar-09 23:00
CodingLover15-Mar-09 23:00 
AnswerRe: Transparent through the label Pin
Christian Graus15-Mar-09 23:22
protectorChristian Graus15-Mar-09 23:22 
AnswerRe: Transparent through the label Pin
Wael Dalloul15-Mar-09 23:23
Wael Dalloul15-Mar-09 23:23 
AnswerRe: Transparent through the label Pin
Michael Bookatz15-Mar-09 23:41
Michael Bookatz15-Mar-09 23:41 
Questionhandle shorcut Ctrl+V event on AxWebBrowser Pin
sonukadole15-Mar-09 22:53
sonukadole15-Mar-09 22:53 
AnswerRe: handle shorcut Ctrl+V event on AxWebBrowser Pin
Pete O'Hanlon15-Mar-09 23:11
mvePete O'Hanlon15-Mar-09 23:11 
GeneralRe: handle shorcut Ctrl+V event on AxWebBrowser Pin
sonukadole15-Mar-09 23:15
sonukadole15-Mar-09 23:15 
GeneralRe: handle shorcut Ctrl+V event on AxWebBrowser Pin
Pete O'Hanlon15-Mar-09 23:26
mvePete O'Hanlon15-Mar-09 23:26 
GeneralRe: handle shorcut Ctrl+V event on AxWebBrowser Pin
sonukadole16-Mar-09 0:09
sonukadole16-Mar-09 0:09 
GeneralRe: handle shorcut Ctrl+V event on AxWebBrowser Pin
Pete O'Hanlon16-Mar-09 2:47
mvePete O'Hanlon16-Mar-09 2:47 
QuestionPreserving row pointer across an database update via a datatable Pin
jrgrobinson15-Mar-09 22:29
jrgrobinson15-Mar-09 22:29 
I am doing an update to my database after adding a row to the data table. The TableAdapter uses the VS2005 generated INSERT command (the table has a lot of columns). The line is...

DishVarTA.Update(CurrentStDishVarRow);

where 'CurrentStDishVarRow' points to the row in the 'Added' state.

My problem is that I want to use the row data after this statement to format and send off to some machinery. After the Update however 'CurrentStDishVarRow' points to an entirely different row.

I think the INSERT statement in the TableAdapter is putting the new row in at the beginning of the table so the row indexing changes.

Is there any way I could preserve the pointer, or is the only way to fill the table again and/or find it again?

Done a lot of searching and haven't found much that covers this, does that mean preserving row pointers across updates is not 'de rigeur'?

Thanks,

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.