944,039 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 908
  • VB.NET RSS
Nov 12th, 2007
0

About how we shown a value in data grid

Expand Post »
Hai this is gopinath.


In one form i have three tables. in that one table for normal textbox and two

for two datagrid. i able to reterive a value for normal things and for one datagrid. i cant able to shown a value for the second datagrid. i am correctly passing parameters. below i write a codings for the second datagrid value display.please find out the error and tell what problem in this


Private Sub dgvBusinessDetails_CellEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgvBusinessDetails.CellEnter
Dim SNo As Decimal
Dim BusinessSegmentUID As Decimal
Dim gCustomerCode As String = ""
If IsDBNull(Me.dgvBusinessDetails.CurrentRow.Cells("gcolCustomerCode").Value) = False And IsDBNull(Me.dgvBusinessDetails.CurrentRow.Cells("gcolBusinessDetailsSNo").Value) = False And IsDBNull(Me.dgvBusinessDetails.CurrentRow.Cells("gcolBusinessDetailsBusinessSegmentUID").Value) = False Then

SNo = Me.dgvBusinessDetails.CurrentRow.Cells("gcolBusinessDetailsSNo").Value
BusinessSegmentUID = Me.dgvBusinessDetails.CurrentRow.Cells("gcolBusinessDetailsBusinessSegmentUID").Value
gCustomerCode = Me.dgvBusinessDetails.CurrentRow.Cells("gcolCustomerCode").Value

End If
Me.MMS_CLIENT_SEGMENT_COMPETITORTableAdapter.Fill(Me.DsCallEntry.MMS_CLIENT_SEGMENT_COMPETITOR, gCustomerCode, SNo, BusinessSegmentUID)
Me.dgvCompetitor.DataSource = Me.MMS_CLIENT_SEGMENT_COMPETITORBindingSource

End Sub
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Gopinath_AC is offline Offline
2 posts
since Nov 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: im learning to save vb in acess
Next Thread in VB.NET Forum Timeline: aproplem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC