how to add combobox to a datagrid
- From: "Ivan V via DotNetMonster.com" <forum@xxxxxxxxxxxxxxxxx>
- Date: Wed, 13 Jul 2005 09:14:14 GMT
Dear All:
I got another programming problem on using the combobox in a datagrid. My
programming code is as follow:
Data_sh.Visible = True
kn = New SqlConnection("Data Source=NTSVR4;" & _
"Initial Catalog= cashier; User ID =
newapp; Password = newapp2005;")
ka.SelectCommand = New SqlCommand("Select chtype.ch_name as
C_TYPE, " & _
"cast(pousadt.amt as
varchar(12)) as AMOUNT, " & _
"paytype.pay_name as P_TYPE,
" & _
"pousadt.f_no as F_NO, " &
_
"pousadt.rec_no as T_NO, "
& _
"pousadt.slip_no as FB_NO,
" & _
"pousadt.dep_no as DEP_NO "
& _
"from pousadt inner join
chtype on " & _
"chtype.ch_type = pousadt.
ch_type inner join " & _
"paytype on paytype.
pay_type = pousadt.pay_type " & _
"where pousadt.ref_no = " &
"'" & silly$ & "'" & _
" and pousadt.gst_code = "
& "'" & tmp$ & "'", kn)
Dim ks As New DataSet()
If ka.Fill(ks, "pousadt") = False Then
Else
Data_sh.DataSource = ks
Data_sh.DataMember = "pousadt"
End If
kn.Close()
Anyone could help me out for the rest of the code??? Thanks a lot!!!!!
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-vb-net/200507/1
.
- Follow-Ups:
- Re: how to add combobox to a datagrid
- From: Armin Zingler
- Re: how to add combobox to a datagrid
- Prev by Date: Re: Combobox in datagrid
- Next by Date: Re: access frmMain code
- Previous by thread: Application deployment - REPAIR option
- Next by thread: Re: how to add combobox to a datagrid
- Index(es):