01.
private
void
Category_Load(
object
sender, EventArgs e)
02.
{
03.
OleDbConnection conn =
new
OleDbConnection(
"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\\ProJSale\\ProJectSale.accdb;Persist Security Info=False"
);
04.
oda =
new
OleDbDataAdapter(
"SELECT IDCaT,NameCat,NameEngCat"
,conn);
05.
dt =
new
DataTable();
06.
oda.Fill(dt);
07.
DGVCategory.DataSource = dt;
08.
09.
}