日期:2014-05-17 浏览次数:20440 次
private void Bindtable()
{
tbcontent.Rows.Clear();
tbcontent.Controls.Clear();
Hashtable ht = new Hashtable();
int i;
for (i = 0; i < ds.Tables[0].Rows.Count; i++)
{
ht.Add(ds.Tables[0].Rows[i]["ConName"], ds.Tables[0].Rows[i]["ConTent"]);
}
cnt = ht.Count;
tbcontent.HorizontalAlign = HorizontalAlign.Left;
for (i = 0; i < 4; i++)
{
TableRow rows = new TableRow();
for (int j = 0; j < 3; j++)
{
TableCell cell = new TableCell();
if (j == 0)
{
Label lbl = new Label();
lbl.ID = "Label" + i.ToString();
if (i == 0)
{
lbl.Text = "姓名";
}
else if(i==1)