Click here to Skip to main content
15,903,203 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionComboLost focus problem.? Pin
mdrizwan_115-Aug-09 2:54
mdrizwan_115-Aug-09 2:54 
AnswerRe: ComboLost focus problem.? Pin
riced15-Aug-09 3:04
riced15-Aug-09 3:04 
QuestionOutlook Contact list Read Only Problem Pin
dcdhingra14-Aug-09 23:15
dcdhingra14-Aug-09 23:15 
QuestionGoogle Mapping... Pin
mdrizwan_114-Aug-09 20:09
mdrizwan_114-Aug-09 20:09 
AnswerRe: Google Mapping... Pin
Dave Kreskowiak15-Aug-09 6:42
mveDave Kreskowiak15-Aug-09 6:42 
QuestionHow to Generate data on Crystal Report when Datagridview item is selected Pin
Dambod14-Aug-09 7:50
Dambod14-Aug-09 7:50 
AnswerRe: How to Generate data on Crystal Report when Datagridview item is selected Pin
Dave Kreskowiak14-Aug-09 8:10
mveDave Kreskowiak14-Aug-09 8:10 
GeneralRe: How to Generate data on Crystal Report when Datagridview item is selected Pin
Dambod14-Aug-09 8:25
Dambod14-Aug-09 8:25 
For i As Integer = 0 To DataGridView1.Rows.GetRowCount(DataGridViewElementStates.None) - 1
If DataGridView1(2, i).Value Is DBNull.Value Then
MsgBox("you didn't Select Student ID", MsgBoxStyle.Exclamation, "Student ID Missing")
Else
'displaying selected student data on crystal report
If DataGridView1(3, i).Value.ToString = "A" Then
rpt.setdatasource(ds) 'ds is my dataset where student table is found
dim myparams as new new ParameterFields()
dim myparam as ParameterField = new ParameterField()
dim myDiscretevalue as new ParameterDiscreteValue()

'// Set the ParameterFieldName to the name of the parameter
'// created in the Field Explorer
myParam.ParameterFieldName = "StudFullName

'// Add first student
myDiscreteValue.Value = "Peter"
myParam.CurrentValues.Add(myDiscreteValue)

'// Reuse myDiscreteValue, and assign second student
myDiscreteValue = new ParameterDiscreteValue()
myDiscreteValue.Value = "Smith"
myParam.CurrentValues.Add(myDiscreteValue);

'// Add param object to params collection
myParams.Add(myParam)

'// Assign the params collection to the report viewer
myCrystalReportViewer.ParameterFieldInfo = myParams

'// Assign the Report to the report viewer.
'// This method uses a strongly typed report,
'// but other methods are possible as well.
myCrystalReportViewer.ReportSource = MyReportObject
end if
and the problem is it says no valid table. can u help me in correcting this code so that when datagridview row is selected, data for the selected student is displayed on the report

thanks
GeneralRe: How to Generate data on Crystal Report when Datagridview item is selected Pin
Dave Kreskowiak14-Aug-09 8:35
mveDave Kreskowiak14-Aug-09 8:35 
GeneralRe: How to Generate data on Crystal Report when Datagridview item is selected Pin
Paramu197314-Aug-09 19:46
Paramu197314-Aug-09 19:46 
GeneralRe: How to Generate data on Crystal Report when Datagridview item is selected Pin
Dave Kreskowiak15-Aug-09 2:21
mveDave Kreskowiak15-Aug-09 2:21 
GeneralRe: How to Generate data on Crystal Report when Datagridview item is selected Pin
Paramu197315-Aug-09 6:08
Paramu197315-Aug-09 6:08 
GeneralSolved Pin
Dambod16-Aug-09 3:58
Dambod16-Aug-09 3:58 
QuestionVB.net 2008, TCPClient Streams Pin
DaveAuld14-Aug-09 7:21
professionalDaveAuld14-Aug-09 7:21 
AnswerRe: VB.net 2008, TCPClient Streams Pin
Dave Kreskowiak14-Aug-09 8:07
mveDave Kreskowiak14-Aug-09 8:07 
GeneralRe: VB.net 2008, TCPClient Streams Pin
DaveAuld14-Aug-09 8:30
professionalDaveAuld14-Aug-09 8:30 
QuestionHow can I force a user to enter a string with characters only with no integer from a text box? Pin
waner michaud14-Aug-09 6:45
waner michaud14-Aug-09 6:45 
AnswerRe: How can I force a user to enter a string with characters only with no integer from a text box? Pin
Dave Kreskowiak14-Aug-09 7:42
mveDave Kreskowiak14-Aug-09 7:42 
AnswerRe: How can I force a user to enter a string with characters only with no integer from a text box? Pin
waner michaud14-Aug-09 11:41
waner michaud14-Aug-09 11:41 
GeneralRe: How can I force a user to enter a string with characters only with no integer from a text box? Pin
Luc Pattyn14-Aug-09 12:38
sitebuilderLuc Pattyn14-Aug-09 12:38 
Questionpassing values from a windows form to a crystal report Pin
myinstincts14-Aug-09 0:12
myinstincts14-Aug-09 0:12 
AnswerRe: passing values from a windows form to a crystal report Pin
Johan Hakkesteegt14-Aug-09 0:41
Johan Hakkesteegt14-Aug-09 0:41 
GeneralRe: passing values from a windows form to a crystal report Pin
myinstincts14-Aug-09 1:57
myinstincts14-Aug-09 1:57 
GeneralRe: passing values from a windows form to a crystal report Pin
Johan Hakkesteegt14-Aug-09 2:10
Johan Hakkesteegt14-Aug-09 2:10 
GeneralRe: passing values from a windows form to a crystal report Pin
myinstincts14-Aug-09 2:17
myinstincts14-Aug-09 2:17 

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.