|
|
|
อยากเอาคำนำหน้า ชื่อ นามสกุล มาไว้ในคอลัมน์เดียวกัน DataGridView VB.NET |
|
|
|
|
|
|
|
Code (VB.NET)
connectDB()
sql = "SELECT id_emp, titlename_emp, name_emp, lastname_emp, tel_emp, idcard_emp, authorizeuser FROM employee"
'da = New SqlDataAdapter(sql, conn1)
'da.Fill(ds, "table")
'DataGridView1.DataSource = ds.Tables("table")
'DataGridView1.Columns("id_emp").HeaderText = "รหัสพนักงาน"
'DataGridView1.Columns("titlename_emp").HeaderText = "ชื่อ - นามสกุล"
'DataGridView1.Columns("tel_emp").HeaderText = "เบอร์โทรศัพท์"
'DataGridView1.Columns("idcard_emp").HeaderText = "หมายเลขบัตรประชาชน"
'DataGridView1.Columns("authorizeuser").HeaderText = "สถานะ"
conn1.Close()
|
|
|
|
|
Date :
2017-03-20 19:38:02 |
By :
tongza1994 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (VB.NET)
connectDB()
sql = "SELECT id_emp, titlename_emp, name_emp, lastname_emp, tel_emp, idcard_emp, authorizeuser FROM employee"
'da = New SqlDataAdapter(sql, conn1)
'da.Fill(ds, "table")
'DataGridView1.DataSource = ds.Tables("table")
'DataGridView1.Columns("id_emp").HeaderText = "รหัสพนักงาน"
'DataGridView1.Columns("titlename_emp").HeaderText = "ชื่อ - นามสกุล"
'DataGridView1.Columns("tel_emp").HeaderText = "เบอร์โทรศัพท์"
'DataGridView1.Columns("idcard_emp").HeaderText = "หมายเลขบัตรประชาชน"
'DataGridView1.Columns("authorizeuser").HeaderText = "สถานะ"
conn1.Close()
|
|
|
|
|
Date :
2017-03-20 19:41:42 |
By :
tongza1994 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Date :
2017-03-21 15:05:16 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 04
|