25-11-18, 10:48 PM
(25-11-18, 09:57 PM)vb2010 كتب : السلام عليكم
يوجد جدول للموردين حملت اسم المورد فى كومبوبوكس اريد اظهار بيانات معينه فى تكستبوكس من الجدول دون اظهاره فى داتاجريدفيو بعد اختيار اسم من الكومبو
كتبت
كود :
Dim dt_Supplier_phone_currentbalance As New DataTable
Dim da_Supplier_phone_currentbalance As New SqlDataAdapter
dt_Supplier_phone_currentbalance.Clear()
da_Supplier_phone_currentbalance = New SqlDataAdapter("select supplier_id,supplier_phone,supplier_currentbalance from supplier", Con)
da_Supplier_phone_currentbalance.Fill(dt_Supplier_phone_currentbalance)
Dgv_purchasebillheaderfooter.DataSource = dt_Supplier_phone_currentbalance
LbltChoseSupplier_phone.Text = Dgv_purchasebillheaderfooter(1, Dgv_purchasebillheaderfooter.CurrentRow.Index).Value
LbltChoseSupplier_currentbalance.Text = Dgv_purchasebillheaderfooter(2, Dgv_purchasebillheaderfooter.CurrentRow.Index).Value
يعني انت عايز لما تختار من
الكومبوبوكس يظهر في التيكس
المبرمج لا يفكر في المشكلة بل في الحل!!

