About how we shown a value in data grid

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2007
Posts: 2
Reputation: Gopinath_AC is an unknown quantity at this point 
Solved Threads: 0
Gopinath_AC Gopinath_AC is offline Offline
Newbie Poster

About how we shown a value in data grid

 
0
  #1
Nov 12th, 2007
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC