Click here to Skip to main content
15,908,674 members
Home / Discussions / Database
   

Database

 
GeneralRe: Viewing large databases Pin
Pius__X2-Apr-06 1:16
Pius__X2-Apr-06 1:16 
Questionhow to connect VB.Net webform with mysql Pin
Amit Agarrwal1-Apr-06 0:28
Amit Agarrwal1-Apr-06 0:28 
AnswerRe: how to connect VB.Net webform with mysql Pin
Paul Conrad1-Apr-06 10:48
professionalPaul Conrad1-Apr-06 10:48 
GeneralRe: how to connect VB.Net webform with mysql Pin
Amit Agarrwal2-Apr-06 20:41
Amit Agarrwal2-Apr-06 20:41 
GeneralRe: how to connect VB.Net webform with mysql Pin
nguyenvhn2-Apr-06 21:42
nguyenvhn2-Apr-06 21:42 
GeneralRe: how to connect VB.Net webform with mysql Pin
Paul Conrad3-Apr-06 4:57
professionalPaul Conrad3-Apr-06 4:57 
QuestionData Base Search in File Pin
babyfam31-Mar-06 20:38
babyfam31-Mar-06 20:38 
QuestionDataSet.HasChanges won't become True and database won't update Pin
MohammadAmiry31-Mar-06 12:06
MohammadAmiry31-Mar-06 12:06 
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 vb-code:

Private Sub cmdRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdRemove.Click 
If DataGrid1.CurrentRowIndex >= 0 Then            
  DataSet1.Tables("Sections").Rows.Remove(DataSet1.Tables("Sections").Rows(DataGrid1.CurrentRowIndex))
  MessageBox.Show(DataSet1.HasChanges)
  OleDbDataAdapterSections.Update(DataSet1, "Sections")  
  DataSet1.AcceptChanges()  
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!

(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!


-- modified at 17:50 Friday 31st March, 2006
QuestionDate comparison Pin
TariqMahmood31-Mar-06 7:18
TariqMahmood31-Mar-06 7:18 
AnswerRe: Date comparison Pin
Colin Angus Mackay31-Mar-06 12:27
Colin Angus Mackay31-Mar-06 12:27 
GeneralRe: Date comparison Pin
TariqMahmood31-Mar-06 20:03
TariqMahmood31-Mar-06 20:03 
QuestionLogin failed for user "myDomain\Guest" Pin
denizmercan31-Mar-06 4:24
denizmercan31-Mar-06 4:24 
AnswerRe: Login failed for user "myDomain\Guest" Pin
HimaBindu Vejella2-Apr-06 19:16
HimaBindu Vejella2-Apr-06 19:16 
GeneralRe: Login failed for user "myDomain\Guest" Pin
denizmercan3-Apr-06 1:27
denizmercan3-Apr-06 1:27 
GeneralRe: Login failed for user "myDomain\Guest" Pin
HimaBindu Vejella3-Apr-06 1:29
HimaBindu Vejella3-Apr-06 1:29 
GeneralRe: Login failed for user "myDomain\Guest" Pin
denizmercan3-Apr-06 1:37
denizmercan3-Apr-06 1:37 
QuestionContinuing setup after msde installation system reboot Pin
Qaiser_Iftikhar31-Mar-06 0:07
Qaiser_Iftikhar31-Mar-06 0:07 
QuestionSimple Count Statement. Pin
munklefish30-Mar-06 23:52
munklefish30-Mar-06 23:52 
AnswerRe: Simple Count Statement. Pin
George L. Jackson31-Mar-06 1:10
George L. Jackson31-Mar-06 1:10 
GeneralRe: Simple Count Statement. Pin
munklefish31-Mar-06 1:13
munklefish31-Mar-06 1:13 
GeneralRe: Simple Count Statement. Pin
George L. Jackson31-Mar-06 1:21
George L. Jackson31-Mar-06 1:21 
QuestionTenant Database Pin
Lav KG30-Mar-06 18:34
Lav KG30-Mar-06 18:34 
AnswerRe: Tenant Database Pin
Colin Angus Mackay31-Mar-06 12:29
Colin Angus Mackay31-Mar-06 12:29 
GeneralRe: Tenant Database Pin
Lav KG2-Apr-06 18:08
Lav KG2-Apr-06 18:08 
AnswerRe: Tenant Database Pin
HimaBindu Vejella2-Apr-06 18:49
HimaBindu Vejella2-Apr-06 18:49 

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.