第二行dataGrid
下面創建按鈕
this
retrieveButton
retrieveButton
retrieveButton
retrieveButton
retrieveButton
retrieveButton
(this
this
}
按鈕會引發Click事件
protected void retrieveButton_Click(object sender
{
retrieveButton
string source =
在選擇了Customers表中的數據填充DataSet後
string select =
SqlConnection conn = new SqlConnection(source);
SqlDataAdapter da = new SqlDataAdapter( select
DataSet ds = new DataSet();
da
dataGrid
}
static void Main()
{
Application
}
}
要編譯該示例
csc /t:winexe /debug+ /r:System
/recurse:*
/recurse:*
[
From:http://tw.wingwit.com/Article/program/net/201311/14883.html