Copy cả dòng trong DataTable/ DataGridView (DataRow/ DataGridViewRow)


C#:
using System.Data;
using System.Windows.Forms;

//DataRow & DataTable
DataTable dt = new DataTable();
//...
int i=0;
DataRow row = (DataRow)(dt.Rows[i]);



//DataGriViewRow & DataGridView
DataGridView dgv = new DataGridView();
DataGridViewRow dgviewRow;
//...
dgviewRow = (DataGridViewRow)dgv.CurrentRow;

Copy »


Keywords: Copy cả dòng trong DataGridView (DataRow)

TOP