20
2009
ฝึกงาน #9
[17.04.2009]
ตอนเช้านั่งเขียนต่อจากเมื่อวาน
ประมาณบ่าย 3 เรียนเรื่องใหม่คือ Windows Form
- Event
- Control
- DataTable
- DataSet
- DataAdapter
DataTable
DataTable = DataColumn + DataRow
DataSet
เป็น set ของ data คือสามารถมีได้หลาย DataTable(DT) เวลาเรียกใช้ ก็
DS.DT["ชื่อตาราง"]
DataSet = DT1 + DT2 + …
การ Bind คือ การทำข้อมูลไปผูกกับ control โดยใช้ Object
คือ DataTable ผ่านทาง DataAdapter
Homework ส่งวันจันทร์
- ทำ windows form : ฐานข้อมูล northwind (อยู่ บ.ใช้ sql server กลับบ้านไปใช้ access)
- พี่อยากให้หัด add reference เอง
- ใช้ stored procedure นะจ๊ะ
- select, insert, update, delete อย่างน้อย 3 table อ่ะ
- ใช้ OLEDB_CONNECTION_STRING ตัวนี้นะ
ตั้งค่าใน Visual Studio
Tools > Options > Source Control
Plug-in Selection
Current source control plug-in: Microsoft Visual SourceSafe
Environment
Checked-in item behavior
On Save : Prompt for check out
On Edit : Prompt for check out
ใน Visual SourceSafe
เพิ่ม Database
Open SourceSafe Database > Add > Next > Connect to an existing database
Location คลิก Browse เลือก ไฟล์ .ini (ในที่นี้คือ srcsafe.ini)
คลิกขวาที่ root เลือก Set Working Folder แล้วเลือก folder ปลายทางที่ต้องการเก็บไฟล์
คลิกขวาที่ root เลือก Get Lastest Version แล้วติ๊ก Recursive และ Build tree(override working folders) จากนั้นกด OK
ปล.ไว้ว่างๆ จะมาอัพเนื้อหาเพิ่ม >,<~
1 Comment + Add Comment
Leave a comment
Categories
Tags
Recent Comments
- Joey on [ASP.net+VB] การทำ Select All / Unselect All ใน GridView
- Joey on [ASP.net+VB] การทำ Select All / Unselect All ใน GridView
- Joey on [ASP.net+VB] การทำ Select All / Unselect All ใน GridView
- Joey on [ASP.net+VB] การทำ Select All / Unselect All ใน GridView
- trongpon on [ASP.net+VB] การสร้าง Pop-up Calendar
An article by





มาดู อิอิ