1
mysql 쿼리에 선택된 필드 (item_code, item_name, item quantity, item_selltype, item_selldetail)가 있지만이 필드 중 일부는 변형입니다.DB VB.NET에서 Datagridview 채우기
Dim sqlConn As String = ("SELECT item_code, item_name, item_quantity, item_selltype, item_selldetail FROM qa_items")
Dim objDataAdapter As New MySqlDataAdapter(sqlConn, objConn)
나는 쿼리가 반환 가정 :
item_code, item_name, item_quantity, item_selltype, item_selldetail
01 Ball 5 unit 10.52
02 Keyoard 10 unit 50.00
03 Gasoline 5 gallon 70.45
DataGridView 컨트롤이 너무 같습니다
Code, Name, Inv, Unit Price, Box Price, Pound Price, Gallon Price
01 Ball 5 10.52 0 0 0
02 Keyboard 10 50.00 0 0 0
03 Gasoline 5 0 0 0 70.45
내가 검색 :
Code, Name, Inv, Unit Price, Box Price, Pound Price, Gallon Price
그때 내가있는 DataGridView에서이 결과를 필요 여러 가지면에서 몇 가지 코드가 있습니다. t는 이것을 할 수 있지만 성공할 수는 없습니다.