|
 |
|
ต้องการ Add row ใน datagridview ให้ลงมาตามข้อมูลที่อยู่ใน Array list ลงมาครับ C# window app |
|
 |
|
|
 |
 |
|
ยังไม่เข้าใจเท่าไหร่ครับว่าอันไหนที่เป็นตัวสร้างมาใหม่
|
 |
 |
 |
 |
Date :
2012-12-30 13:31:12 |
By :
job2004 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ก็ตอนคุณ add row คุณทำการ add แค่ 1 row เลยทำให้ข้อมูลที่ได้มีแค่ 1 row ครับ
ลองดู บรรนทัดที่ 75 ครับ คุณกำหนดให้เป็น row ที่ 0 มันก็เลยได้แค่ 1 row
|
 |
 |
 |
 |
Date :
2012-12-30 20:59:26 |
By :
kanchen |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมเพิ่มข้อมูลจากหน้านี้ละ 1 ครั้ง

ดังนั้นถ้าผมเพิ่มข้อมูล 2 ครั้งมันจะต้องเพิ่มมา 2 row แต่มันก็ยังไม่ได้ครับ

ผมลองใช้ if (search.Rows.Count == 0) ไม่ทราบว่าผมทำถูกอ่าป่าวชี้แนะด้วยครับว่าควรแก้ไขยังไง
|
 |
 |
 |
 |
Date :
2012-12-31 22:53:32 |
By :
job2004 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
....
|
 |
 |
 |
 |
Date :
2013-01-01 16:37:33 |
By :
job2004 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
...
|
 |
 |
 |
 |
Date :
2013-01-01 23:40:12 |
By :
job2004 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|