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

.NET (Core and Framework)

 
AnswerRe: Toolstrip Pin
Dave Kreskowiak8-Feb-14 2:51
mveDave Kreskowiak8-Feb-14 2:51 
Questionnot able to save image which is already saved with same name and to the same location Pin
ven7537-Feb-14 18:05
ven7537-Feb-14 18:05 
AnswerRe: not able to save image which is already saved with same name and to the same location Pin
TnTinMn7-Feb-14 18:37
TnTinMn7-Feb-14 18:37 
GeneralRe: not able to save image which is already saved with same name and to the same location Pin
ven7537-Feb-14 23:22
ven7537-Feb-14 23:22 
GeneralRe: not able to save image which is already saved with same name and to the same location Pin
TnTinMn8-Feb-14 8:43
TnTinMn8-Feb-14 8:43 
GeneralRe: not able to save image which is already saved with same name and to the same location Pin
ven7539-Feb-14 2:13
ven7539-Feb-14 2:13 
AnswerRe: not able to save image which is already saved with same name and to the same location Pin
PKJain7512-Feb-14 23:51
professionalPKJain7512-Feb-14 23:51 
Questionpopulating data from datagridview into textboxes Pin
Member 105062157-Feb-14 1:10
Member 105062157-Feb-14 1: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?

VB
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 8:55
professionalEddy Vluggen7-Feb-14 8:55 
QuestionError in conversion of application Pin
Ashish Sharma6-Feb-14 18:18
Ashish Sharma6-Feb-14 18:18 
AnswerRe: Error in conversion of application Pin
thatraja6-Feb-14 20:24
professionalthatraja6-Feb-14 20:24 
Questionnot able to Deserialize json signature lines Pin
ven7534-Feb-14 18:36
ven7534-Feb-14 18:36 
AnswerRe: not able to Deserialize json signature lines Pin
Richard Deeming5-Feb-14 2:57
mveRichard Deeming5-Feb-14 2:57 
GeneralRe: not able to Deserialize json signature lines Pin
ven7535-Feb-14 5:17
ven7535-Feb-14 5:17 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming5-Feb-14 5:35
mveRichard Deeming5-Feb-14 5:35 
GeneralRe: not able to Deserialize json signature lines Pin
ven7535-Feb-14 6:11
ven7535-Feb-14 6:11 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming5-Feb-14 6:50
mveRichard Deeming5-Feb-14 6:50 
GeneralRe: not able to Deserialize json signature lines Pin
ven7535-Feb-14 7:18
ven7535-Feb-14 7:18 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming5-Feb-14 8:01
mveRichard Deeming5-Feb-14 8:01 
GeneralRe: not able to Deserialize json signature lines Pin
ven7535-Feb-14 16:09
ven7535-Feb-14 16:09 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming6-Feb-14 1:37
mveRichard Deeming6-Feb-14 1:37 
GeneralRe: not able to Deserialize json signature lines Pin
ven7536-Feb-14 6:54
ven7536-Feb-14 6:54 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming6-Feb-14 8:56
mveRichard Deeming6-Feb-14 8:56 
GeneralRe: not able to Deserialize json signature lines Pin
ven7536-Feb-14 16:18
ven7536-Feb-14 16:18 
GeneralRe: not able to Deserialize json signature lines Pin
ven7536-Feb-14 21:34
ven7536-Feb-14 21: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.