How to set the 'Insert New Row' as First Row in DataGridView

Pada posting kali ini akan dibahas tentang "How to set the 'Insert New Row' as First Row in DataGridView"

"How to set the 'Insert New Row' as First Row in DataGridView"  biasanya digunakan untuk memperlihatkan urutan antrian secara visual.

Dibawah contoh skrip untuk posting "How to set the 'Insert New Row' as First Row in DataGridView"

Dim dtLog As New DataTable()
dtLog.Columns.Add("Log", GetType(String))

oDr = dtLog.NewRow
Dim nInt As Int16 = 1
oDr("Log") = (nInt).ToString
dtLog.Rows.InsertAt(oDr, 0)
DgLog.DataSource = dtLog

Recommended Reading:
Get Publish Version in VB.NET OneClick Deployment

Semoga posting artikel tentang "How to set the 'Insert New Row' as First Row in DataGridView" diatas dapat bermanfaat.


Salam,

Popular posts from this blog

SmartObject property ID is a required property for selected method Create. Value must be set.

Cara inject USB 3.0 Driver pada instalasi Windows - How to Inject USB 3.0 Driver in Windows 7

Python Font Color in Console