protected void btnEXPORT_Click(object sender, EventArgs e)
{
gv_Master.ReNewData();
DataView dvSel = new DataView(gv_Master.TempTable, "SEL = 'Y' AND TEL1 <> ''", "", DataViewRowState.CurrentRows);
txtTEL.Text = string.Empty;
foreach (DataRowView drv in dvSel)
{
txtTEL.Text += drv["TEL1"].ToString() + ",";
}
txtTEL.Text = txtTEL.Text.IndexOf(',') >= 0 ? txtTEL.Text.TrimEnd(',') : txtTEL.Text;
}
沒有留言:
張貼留言