Click here to Skip to main content
16,013,338 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionFinding the Text value of a column... Pin
CCG325-May-07 4:39
CCG325-May-07 4:39 
AnswerRe: Finding the Text value of a column... Pin
Marcus J. Smith25-May-07 6:24
professionalMarcus J. Smith25-May-07 6:24 
GeneralRe: Finding the Text value of a column... Pin
CCG325-May-07 6:38
CCG325-May-07 6:38 
GeneralRe: Finding the Text value of a column... Pin
Marcus J. Smith25-May-07 7:53
professionalMarcus J. Smith25-May-07 7:53 
GeneralRe: Finding the Text value of a column... Pin
CCG325-May-07 8:04
CCG325-May-07 8:04 
QuestionStringBuilder huge string concatenation Pin
K.P.Kannan25-May-07 4:18
K.P.Kannan25-May-07 4:18 
AnswerRe: StringBuilder huge string concatenation Pin
Marcus J. Smith25-May-07 6:28
professionalMarcus J. Smith25-May-07 6:28 
Questioncan't update Pin
sathyan_829425-May-07 4:16
sathyan_829425-May-07 4:16 
hai all,
i am using .net 2003.i want to update and save the changed values permanently in sqldatabase through datagrid during runtime in vb.net windows form.
using the following code can't update and can't save the changed values permanently.but i run this program, didn't show any error.plz any body help.
Try
Dim myChangedDataset As DataSet = Me.DataSet41.GetChanges
If Not (myChangedDataset Is Nothing) Then
Dim modifiedRows As Integer = Me.SqlDataAdapter1.Update(myChangedDataset)
MessageBox.Show("Database has been updated successfully: " + modifiedRows + " Modified row(s) ", "Success")
Me.DataSet41.AcceptChanges()
fnRefresh()
Else
MessageBox.Show("Nothing to save", "No changes")
End If
Catch ex As Exception
MessageBox.Show("An error occurred updating the database: " + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
Me.DataSet41.RejectChanges()
End Try

AnswerRe: can't update Pin
Kschuler25-May-07 7:39
Kschuler25-May-07 7:39 
AnswerRe: can't update Pin
advansis25-May-07 8:26
advansis25-May-07 8:26 
QuestionIs this legal? Pin
Zaegra25-May-07 4:11
Zaegra25-May-07 4:11 
AnswerRe: Is this legal? Pin
Johan Hakkesteegt28-May-07 2:06
Johan Hakkesteegt28-May-07 2:06 
Questionconvert vb to .net Pin
koolprasad200325-May-07 3:20
professionalkoolprasad200325-May-07 3:20 
AnswerRe: convert vb to .net Pin
Dave Kreskowiak25-May-07 3:34
mveDave Kreskowiak25-May-07 3:34 
QuestionSetting a DataSet's Primary Key Pin
Quecumber25625-May-07 3:05
Quecumber25625-May-07 3:05 
QuestionManipulating options in Outlook using DoCmd.SendObject [modified] Pin
reegan4125-May-07 2:37
reegan4125-May-07 2:37 
QuestionTab Controls question Pin
reegan4125-May-07 2:29
reegan4125-May-07 2:29 
QuestionCrystal Report on Basis of Dataset having multiple tables Pin
Syed Ali Raza25-May-07 2:26
Syed Ali Raza25-May-07 2:26 
AnswerRe: Crystal Report on Basis of Dataset having multiple tables Pin
Rupesh Kumar Swami25-May-07 2:52
Rupesh Kumar Swami25-May-07 2:52 
GeneralRe: Crystal Report on Basis of Dataset having multiple tables Pin
Syed Ali Raza25-May-07 2:56
Syed Ali Raza25-May-07 2:56 
GeneralRe: Crystal Report on Basis of Dataset having multiple tables Pin
Syed Ali Raza25-May-07 3:33
Syed Ali Raza25-May-07 3:33 
GeneralRe: Crystal Report on Basis of Dataset having multiple tables Pin
Rupesh Kumar Swami25-May-07 4:24
Rupesh Kumar Swami25-May-07 4:24 
QuestionAutomate Microsoft Word From VB6 Pin
Carter Langley25-May-07 2:15
Carter Langley25-May-07 2:15 
AnswerRe: Automate Microsoft Word From VB6 Pin
Johan Hakkesteegt28-May-07 2:34
Johan Hakkesteegt28-May-07 2:34 
GeneralRe: Automate Microsoft Word From VB6 Pin
Carter Langley28-May-07 2:45
Carter Langley28-May-07 2:45 

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.