i wanted to make a dll for a function with multiple parameters
in that one parameter is for name of datagridview
if i pass the name in string it shows that datasource could not be assigned to string
adp = New SqlDataAdapter("select CId,SrNo,Date,Name,Contact,Contact1,ResNumber,DOB,Age,Location,Qualification,CurrentOrganizatn,WorkExp,CalledBy,EQId,SentTo,HRStatus,Process,SentTo1,HRStatus1,Process1,SentTo2,HRStatus2,Process2,SentTo3,HRStatus3,Process3,SentTo4,HRStatus4,Process4,Remark,Remark1 from TotTab where convert(datetime,Date,105) between convert(datetime,'" + DispatchFrom + "',105) and convert(datetime,'" + DispatchTo + "',105) and SentTo='" + offerCb + "' and HRStatus like 'rej%', con)
in other case if i want to use that dataset as datasource on other project it shows that dataset not defined
Private Sub DispatchBtn_Click(sender As System.Object, e As System.EventArgs) Handles DispatchBtn.Click
Dim Hi As New dispatched.Class1
Hi.selectDispatch(offerCb.Text, DispatchFrom.Text, DispatchTo.Text, My.Settings.Equation1ConnectionString)
DispatchGrid.DataSource = Hi.ds1.Tables(0)
End Sub
how can i pass it can some 1 help me..