Click here to Skip to main content
15,919,245 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
NewsMind Those Passwords! Pin
AmitKumar8924-Jun-12 18:49
AmitKumar8924-Jun-12 18:49 
AnswerRe: Mind Those Passwords! Pin
Sandeep Mewara24-Jun-12 19:58
mveSandeep Mewara24-Jun-12 19:58 
GeneralRe: Mind Those Passwords! Pin
AmitKumar8925-Jun-12 1:49
AmitKumar8925-Jun-12 1:49 
GeneralRe: Mind Those Passwords! Pin
Dave Kreskowiak25-Jun-12 5:23
mveDave Kreskowiak25-Jun-12 5:23 
GeneralRe: Mind Those Passwords! Pin
Richard MacCutchan25-Jun-12 5:35
mveRichard MacCutchan25-Jun-12 5:35 
QuestionPlease Explain about Database Cache Pin
ICEFLOWER224-Jun-12 18:11
ICEFLOWER224-Jun-12 18:11 
AnswerRe: Please Explain about Database Cache Pin
Sandeep Mewara24-Jun-12 20:05
mveSandeep Mewara24-Jun-12 20:05 
Questionhow to save data from datagridview to database in vb 2008 Pin
Jayeshkumar M Patel24-Jun-12 0:57
Jayeshkumar M Patel24-Jun-12 0:57 
Dear Sir
i made a project and it has datagirdview

now those data which are in datagride how to save in database sql
my code save just last row in database even i have 5 rows in datagridview
my code is like that

VB
RS.Open("select * from purchasebill where entryno like '" & TextEntryNo.Text & "'", CN, CursorTypeEnum.adOpenKeyset, LockTypeEnum.adLockPessimistic)
        If (RS.EOF And RS.BOF) Then
            RS.AddNew()
            MsgBox(TextEntryNo.Text & "   Is Saved")

        Else
            If RS("EntryNo").Value = TextEntryNo.Text Then
                MsgBox(TextEntryNo.Text & "    User Ia Allready Exist")
                ' RS.Close()
                CmdNew.Focus()
                ' Exit Sub
            End If
        End If
        RS("EntryNo").Value = TextEntryNo.Text
        RS("Entrydate").Value = MaskEntryDate.Text
        RS("BillNo").Value = TextBillNo.Text
        RS("billDate").Value = MaskBillDate.Text
        RS("SupplierName").Value = TextSupplierName.Text
        RS("Billtype").Value = ComboBillType.Text


VB
For i As Integer = 0 To DGVRecord.RowCount - 1
           RS("productname").Value = Me.DGVRecord.Rows(i).Cells("Product").Value
           RS("batchno").Value = Me.DGVRecord.Rows(i).Cells("batchno").Value
           RS("expirydate").Value = Me.DGVRecord.Rows(i).Cells("Expiry").Value
       Next

SQL
RS.Update()

RS.Close()
AnswerRe: how to save data from datagridview to database in vb 2008 Pin
Sandeep Mewara24-Jun-12 20:01
mveSandeep Mewara24-Jun-12 20:01 
QuestionHow Can I Save and Load Tree View Items Pin
ICEFLOWER223-Jun-12 16:31
ICEFLOWER223-Jun-12 16:31 
AnswerRe: How Can I Save and Load Tree View Items Pin
Richard MacCutchan24-Jun-12 0:18
mveRichard MacCutchan24-Jun-12 0:18 
AnswerRe: How Can I Save and Load Tree View Items Pin
Eddy Vluggen24-Jun-12 0:22
professionalEddy Vluggen24-Jun-12 0:22 
QuestionVS Editor Extensions, Split Code View? Pin
Don Rolando20-Jun-12 7:06
Don Rolando20-Jun-12 7:06 
AnswerRe: VS Editor Extensions, Split Code View? Pin
Richard MacCutchan20-Jun-12 21:12
mveRichard MacCutchan20-Jun-12 21:12 
GeneralRe: VS Editor Extensions, Split Code View? Pin
Don Rolando21-Jun-12 2:54
Don Rolando21-Jun-12 2:54 
GeneralRe: VS Editor Extensions, Split Code View? Pin
Richard MacCutchan21-Jun-12 3:11
mveRichard MacCutchan21-Jun-12 3:11 
GeneralRe: VS Editor Extensions, Split Code View? Pin
Pete O'Hanlon21-Jun-12 3:17
mvePete O'Hanlon21-Jun-12 3:17 
GeneralRe: VS Editor Extensions, Split Code View? Pin
Richard MacCutchan21-Jun-12 3:20
mveRichard MacCutchan21-Jun-12 3:20 
GeneralRe: VS Editor Extensions, Split Code View? Pin
irving1221-Jun-12 15:39
irving1221-Jun-12 15:39 
QuestionHow to Change Default On Screen Keyboard? Pin
FUNCTOR9915-Jun-12 8:08
FUNCTOR9915-Jun-12 8:08 
AnswerRe: How to Change Default On Screen Keyboard? Pin
FUNCTOR9920-Jun-12 12:32
FUNCTOR9920-Jun-12 12:32 
GeneralRe: How to Change Default On Screen Keyboard? Pin
Richard MacCutchan20-Jun-12 21:10
mveRichard MacCutchan20-Jun-12 21:10 
Questionproblem with PasswordDeriveBytes on windows ce Pin
iman_kh7-Jun-12 20:36
iman_kh7-Jun-12 20:36 
AnswerRe: problem with PasswordDeriveBytes on windows ce Pin
Dave Kreskowiak8-Jun-12 3:37
mveDave Kreskowiak8-Jun-12 3:37 
QuestionDevelop COM class / ActiveX with data bound properties in .NET? Pin
vware4-Jun-12 8:55
vware4-Jun-12 8:55 

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.