Click here to Skip to main content
12,630,967 members (32,319 online)

.NET Framework

 
AnswerRe: Toolstrip Pin
Dave Kreskowiak8-Feb-14 3:51
mvpDave Kreskowiak8-Feb-14 3:51 
Questionnot able to save image which is already saved with same name and to the same location Pin
ven7537-Feb-14 19:05
memberven7537-Feb-14 19:05 
AnswerRe: not able to save image which is already saved with same name and to the same location Pin
TnTinMn7-Feb-14 19:37
memberTnTinMn7-Feb-14 19:37 
GeneralRe: not able to save image which is already saved with same name and to the same location Pin
ven7538-Feb-14 0:22
memberven7538-Feb-14 0:22 
GeneralRe: not able to save image which is already saved with same name and to the same location Pin
TnTinMn8-Feb-14 9:43
memberTnTinMn8-Feb-14 9:43 
GeneralRe: not able to save image which is already saved with same name and to the same location Pin
ven7539-Feb-14 3:13
memberven7539-Feb-14 3:13 
AnswerRe: not able to save image which is already saved with same name and to the same location Pin
PKJain7513-Feb-14 0:51
professionalPKJain7513-Feb-14 0:51 
Questionpopulating data from datagridview into textboxes Pin
Member 105062157-Feb-14 2:10
memberMember 105062157-Feb-14 2:10 
Hello guys i have a problem. i have a datagridview with textboxes. i insert-update-delete records from database. Everything works fine. when i click on a cell in the grid. the information about this person are populated into the textboxes. but when i click on the newly inserted record it won't display the informations into texboxes. here is my code. What could the problem be?

Private Sub DataGridView1_RowEnter(sender As Object, e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.RowEnter
              Try
            If e.RowIndex < 0 Then Exit Sub
            txtserial.Text = DataGridView1.Rows(e.RowIndex).Cells(0).Value
            lblcustomer.Text = "Member: " & DataGridView1.Rows(e.RowIndex).Cells("Name").Value & "   " & DataGridView1.Rows(e.RowIndex).Cells("familyName").Value
            Dim cmd As SqlCommand
            Dim myDA As SqlDataAdapter
            Dim myDataSet As DataSet
            Dim strsql As String
            Dim i As Integer = 0
            strsql = "select * from membersvw where serial = " & Val(txtserial.Text)
            cmd = New SqlCommand(strsql, mcon)
            If mcon.State = ConnectionState.Closed Then mcon.Open()
            myDA = New SqlDataAdapter(cmd)
            myDataSet = New DataSet()
            myDA.Fill(myDataSet, "membersvw")
            If myDataSet.Tables("membersvw").Rows.Count > 0 Then
                txtserial.Text = myDataSet.Tables("membersvw").Rows(0).Item("serial").ToString
                txtname.Text = myDataSet.Tables("membersvw").Rows(0).Item("name").ToString
                txtfamilyname.Text = myDataSet.Tables("membersvw").Rows(0).Item("familyname").ToString
                txtphone.Text = myDataSet.Tables("membersvw").Rows(0).Item("phone").ToString
                txtmobile.Text = myDataSet.Tables("membersvw").Rows(0).Item("mobile").ToString
                txtfax.Text = myDataSet.Tables("membersvw").Rows(0).Item("fax").ToString
                txtemail.Text = myDataSet.Tables("membersvw").Rows(0).Item("email").ToString
                txtwebsite.Text = myDataSet.Tables("membersvw").Rows(0).Item("website").ToString
                txtaddress.Text = myDataSet.Tables("membersvw").Rows(0).Item("address").ToString
                txtspace.Text = myDataSet.Tables("membersvw").Rows(0).Item("space").ToString
                cmbtimezone.Text = myDataSet.Tables("membersvw").Rows(0).Item("timezonename").ToString
            End If
            If TabControl1.SelectedTab.Name = "TabPage2" Then
                clearcars()
                fillcargrid()
            ElseIf TabControl1.SelectedTab.Name = "TabPage3" Then
                clearpayments()
                fillpaymentgrid()
            End If
            myDA.Dispose()
            myDataSet.Dispose()
            mcon.Close()
        Catch ex As Exception
            MsgBox(ex.ToString)
        End Try
    End Sub
Thank you for your help.

modified 7-Feb-14 7:28am.

QuestionRe: populating data from datagridview into textboxes Pin
Eddy Vluggen7-Feb-14 9:55
professionalEddy Vluggen7-Feb-14 9:55 
QuestionError in conversion of application Pin
Ashish Sharma6-Feb-14 19:18
memberAshish Sharma6-Feb-14 19:18 
AnswerRe: Error in conversion of application Pin
thatraja6-Feb-14 21:24
mvpthatraja6-Feb-14 21:24 
Questionnot able to Deserialize json signature lines Pin
ven7534-Feb-14 19:36
memberven7534-Feb-14 19:36 
AnswerRe: not able to Deserialize json signature lines Pin
Richard Deeming5-Feb-14 3:57
professionalRichard Deeming5-Feb-14 3:57 
GeneralRe: not able to Deserialize json signature lines Pin
ven7535-Feb-14 6:17
memberven7535-Feb-14 6:17 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming5-Feb-14 6:35
professionalRichard Deeming5-Feb-14 6:35 
GeneralRe: not able to Deserialize json signature lines Pin
ven7535-Feb-14 7:11
memberven7535-Feb-14 7:11 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming5-Feb-14 7:50
professionalRichard Deeming5-Feb-14 7:50 
GeneralRe: not able to Deserialize json signature lines Pin
ven7535-Feb-14 8:18
memberven7535-Feb-14 8:18 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming5-Feb-14 9:01
professionalRichard Deeming5-Feb-14 9:01 
GeneralRe: not able to Deserialize json signature lines Pin
ven7535-Feb-14 17:09
memberven7535-Feb-14 17:09 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming6-Feb-14 2:37
professionalRichard Deeming6-Feb-14 2:37 
GeneralRe: not able to Deserialize json signature lines Pin
ven7536-Feb-14 7:54
memberven7536-Feb-14 7:54 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming6-Feb-14 9:56
professionalRichard Deeming6-Feb-14 9:56 
GeneralRe: not able to Deserialize json signature lines Pin
ven7536-Feb-14 17:18
memberven7536-Feb-14 17:18 
GeneralRe: not able to Deserialize json signature lines Pin
ven7536-Feb-14 22:34
memberven7536-Feb-14 22:34 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.161205.3 | Last Updated 30 Nov 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid