Click here to Skip to main content
15,896,154 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionLoad html page in VB.NET Pin
lucdt30-Mar-06 17:03
lucdt30-Mar-06 17:03 
AnswerRe: Load html page in VB.NET Pin
sathish s30-Mar-06 20:02
sathish s30-Mar-06 20:02 
Questionnull value - datetimepicker checked property Pin
VaLynna30-Mar-06 16:36
VaLynna30-Mar-06 16:36 
AnswerRe: null value - datetimepicker checked property Pin
sathish s30-Mar-06 19:05
sathish s30-Mar-06 19:05 
QuestionHowto:Transfer or show display Excel data into listbox with VB.NET Pin
jikadawe30-Mar-06 16:34
jikadawe30-Mar-06 16:34 
Questionview video Pin
vivayor kong30-Mar-06 15:49
vivayor kong30-Mar-06 15:49 
AnswerRe: view video Pin
Dave Kreskowiak31-Mar-06 4:40
mveDave Kreskowiak31-Mar-06 4:40 
QuestionDataset.HasChanges won't becomeTrue! Pin
MohammadAmiry30-Mar-06 12:59
MohammadAmiry30-Mar-06 12:59 
hi, I have a dataset, DataSet1, populated from a database table named "Sections" which is bounded to DataGrid1.
I want to remove a row if a user selects it in the datagrid and presses the remove button. here is the code:
Private Sub cmdRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdRemove.Click
        If DataGrid1.CurrentRowIndex >= 0 Then
            Try
                DataSet1.Tables("Sections").Rows.Remove(DataSet1.Tables("Sections").Rows(DataGrid1.CurrentRowIndex))
                MsgBox(DataSet1.HasChanges)
                ''OleDbConnection1.Open()
                OleDbDataAdapterSections.Update(DataSet1, "Sections")
                DataSet1.AcceptChanges()
            Catch

            Finally
                ''OleDbConnection1.Close()
            End Try
        End If
    End Sub


But messagebox shows False, and the row is not actually removed from the database, ALTHOUGH DataGrid1 shows that the row has removed from dataset! Confused | :confused:

(I use the same method i.e. DataSet1...Rows.Add(..) and then the oleDbDataAdapterSections.Update(..) to add rows which works perfectly!! But the added rows are not removed using the same code from the database...)

I really dunno the reason and got confused!Sleepy | :zzz:

-- modified at 20:04 Thursday 30th March, 2006
Questiontopmost Pin
SVb.net30-Mar-06 12:07
SVb.net30-Mar-06 12:07 
AnswerRe: topmost Pin
Steve Pullan30-Mar-06 12:59
Steve Pullan30-Mar-06 12:59 
AnswerRe: topmost Pin
Joshua Quick30-Mar-06 14:06
Joshua Quick30-Mar-06 14:06 
AnswerUse Desktops Pin
MohammadAmiry30-Mar-06 14:18
MohammadAmiry30-Mar-06 14:18 
GeneralRe: Use Desktops Pin
Joshua Quick30-Mar-06 23:46
Joshua Quick30-Mar-06 23:46 
GeneralRe: Use Desktops Pin
Dave Kreskowiak31-Mar-06 5:56
mveDave Kreskowiak31-Mar-06 5:56 
GeneralRe: Use Desktops Pin
MohammadAmiry31-Mar-06 11:14
MohammadAmiry31-Mar-06 11:14 
QuestionReversing a string Pin
machman130-Mar-06 11:52
machman130-Mar-06 11:52 
AnswerRe: Reversing a string Pin
Steve Pullan30-Mar-06 11:58
Steve Pullan30-Mar-06 11:58 
QuestionProgress bar Pin
MikeUPMC30-Mar-06 9:33
MikeUPMC30-Mar-06 9:33 
AnswerRe: Progress bar Pin
Steve Pullan30-Mar-06 13:07
Steve Pullan30-Mar-06 13:07 
AnswerRe: Progress bar Pin
MohammadAmiry30-Mar-06 14:25
MohammadAmiry30-Mar-06 14:25 
GeneralRe: Progress bar Pin
MikeUPMC3-Apr-06 10:29
MikeUPMC3-Apr-06 10:29 
AnswerRe: Progress bar Pin
MohammadAmiry4-Apr-06 1:23
MohammadAmiry4-Apr-06 1:23 
QuestionReceiving Net Send within application textbox Pin
sharmaabhishek30-Mar-06 8:19
sharmaabhishek30-Mar-06 8:19 
AnswerRe: Receiving Net Send within application textbox Pin
Eric Dahlvang31-Mar-06 3:17
Eric Dahlvang31-Mar-06 3:17 
GeneralRe: Receiving Net Send within application textbox Pin
sharmaabhishek1-Apr-06 13:08
sharmaabhishek1-Apr-06 13:08 

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.