| | |
About how we shown a value in data grid
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2007
Posts: 2
Reputation:
Solved Threads: 0
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
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
- Data Grid Help required (Visual Basic 4 / 5 / 6)
- How can I generate report from data grid?? (VB.NET)
- data grid.... very urgent...... (C#)
- Help with data grid please (VB.NET)
- How to store data in data grid to database by single mouse click in Asp.net (ASP.NET)
- Data Grid in Win32 C (C++)
- data grid problems...please help (VB.NET)
- Data Grid: How to include Hyperlinks (ASP.NET)
Other Threads in the VB.NET Forum
- Previous Thread: im learning to save vb in acess
- Next Thread: aproplem
| Thread Tools | Search this Thread |
.net .net2008 2008 access add advanced application array assignment basic beginner box browser button buttons center click client code combo convert cpu cuesent data database datagrid datagridview datetimepicker designer dissertation dissertations dissertationtopic eclipse editvb.net employees excel exists filter forms function html images isnumericfuntioncall listview map mobile module msaccess mssqlbackend mysql net number open page pan panel pdf picturebox picturebox2 port position print printing printpreview read record regex reuse right-to-left save search serial settings socket sorting sqldatbase sqlserver storedprocedure temp textbox timer timespan transparency txttoxmlconverter usercontol vb vb.net vba vbnet vista visual visualbasic visualbasic.net visualstudio.net web winsock wpf wrapingcode xml year





