using System;
using System.Collections.Generic;
using
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Printing;
namespace UCDataGridViewPage
{
public partial class UCDataGridViewPage : UserControl
{
private System.Windows.Forms.DataGridView dataView = new System.Windows.Forms.DataGridView();
private DataTable dt = null;
public UCDataGridViewPage()
{
InitializeComponent();
}
[Description("设定数据集"), Category("Appearance")]
public DataTable DTable
{
get
{
return dt;
}
set
{
dt = value;
}
}
}
}
我是想用dt给dataView数据源赋值啊。