Click here to Skip to main content
15,922,015 members
Home / Discussions / C#
   

C#

 
GeneralRe: Query takes a long time and then crashes............??? Pin
Le centriste9-Dec-08 8:53
Le centriste9-Dec-08 8:53 
AnswerRe: Query takes a long time and then crashes............??? Pin
Ashfield9-Dec-08 8:50
Ashfield9-Dec-08 8:50 
GeneralRe: Query takes a long time and then crashes............??? Pin
Reality Strikes9-Dec-08 8:54
Reality Strikes9-Dec-08 8:54 
GeneralRe: Query takes a long time and then crashes............??? Pin
leppie9-Dec-08 20:23
leppie9-Dec-08 20:23 
GeneralRe: Query takes a long time and then crashes............??? Pin
Ashfield10-Dec-08 1:15
Ashfield10-Dec-08 1:15 
GeneralRe: Query takes a long time and then crashes............??? Pin
Reality Strikes10-Dec-08 3:44
Reality Strikes10-Dec-08 3:44 
QuestionCSEXWB - Managing Security Pin
Saul Johnson9-Dec-08 5:58
Saul Johnson9-Dec-08 5:58 
QuestionInserting row in DataGridView doesn't update Primary Key Pin
dj_jeff9-Dec-08 5:32
dj_jeff9-Dec-08 5:32 
I'm only using Visual C# 2008 Express Edition for a .NET Framework 2.0 project. So, I'm not able to use an assistent creating a connection to a MS SQL 2005 database on another server, it has to be done in code.

The table itself has a field which is automatically a primary key with autoincrement functionality.

Selecting all fields in the table are no problem with SqlConnection-, SqlDataAdapter etc. I'm also able to update an existing entry. My problem is inserting a new row. The new set is added to the table, but I'm not automatically getting back the new Primary Key value in the ID field (it's also not in the DataTable during debugging) Mad | :mad: . Next time, I'm editing this field, I'm getting an error, of course for updating it needs the new ID, the DataGridView-/ DataTable- Object doesn't know.

Probably it's very easy, but how can this ID can be updated in the DataGridView and let the dataset navigator of the grid stay at the current position (no reload with moving the navigator to the first set).
AnswerRe: Inserting row in DataGridView doesn't update Primary Key Pin
led mike9-Dec-08 5:46
led mike9-Dec-08 5:46 
GeneralRe: Inserting row in DataGridView doesn't update Primary Key Pin
dj_jeff9-Dec-08 20:41
dj_jeff9-Dec-08 20:41 
GeneralRe: Inserting row in DataGridView doesn't update Primary Key Pin
led mike10-Dec-08 5:28
led mike10-Dec-08 5:28 
GeneralRe: Inserting row in DataGridView doesn't update Primary Key Pin
dj_jeff11-Dec-08 6:13
dj_jeff11-Dec-08 6:13 
GeneralRe: Inserting row in DataGridView doesn't update Primary Key Pin
led mike11-Dec-08 6:50
led mike11-Dec-08 6:50 
Questionshould client machine contain sqlserver installed , if i am using sqlserver as backend Pin
praveenvkumarv9-Dec-08 3:46
praveenvkumarv9-Dec-08 3:46 
AnswerRe: should client machine contain sqlserver installed , if i am using sqlserver as backend Pin
Abhijit Jana9-Dec-08 4:12
professionalAbhijit Jana9-Dec-08 4:12 
GeneralRe: should client machine contain sqlserver installed , if i am using sqlserver as backend Pin
praveenvkumarv9-Dec-08 4:21
praveenvkumarv9-Dec-08 4:21 
AnswerRe: should client machine contain sqlserver installed , if i am using sqlserver as backend Pin
Lev Danielyan9-Dec-08 4:39
Lev Danielyan9-Dec-08 4:39 
Questiondeployment using sqlserver and c# Pin
praveenvkumarv9-Dec-08 3:43
praveenvkumarv9-Dec-08 3:43 
AnswerRe: deployment using sqlserver and c# Pin
Abhijit Jana9-Dec-08 4:17
professionalAbhijit Jana9-Dec-08 4:17 
AnswerRe: deployment using sqlserver and c# Pin
Lev Danielyan9-Dec-08 4:34
Lev Danielyan9-Dec-08 4:34 
QuestionEvent Log Permissions Pin
prod@pt9-Dec-08 3:24
prod@pt9-Dec-08 3:24 
AnswerRe: Event Log Permissions Pin
Brij9-Dec-08 3:38
mentorBrij9-Dec-08 3:38 
GeneralRe: Event Log Permissions Pin
Abhijit Jana9-Dec-08 4:15
professionalAbhijit Jana9-Dec-08 4:15 
Questionthe way to save a image from picturebox Pin
thucbv9-Dec-08 2:14
thucbv9-Dec-08 2:14 
AnswerRe: the way to save a image from picturebox Pin
SeMartens9-Dec-08 2:40
SeMartens9-Dec-08 2:40 

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.