private void Button2_Click( object sender, System.EventArgs e) ... { //rb是RadioButtonList的ID名称 DataTable mydt = new DataTable(); DataRow mydr; mydt.Columns.Add("name"); mydt.Columns.Add("age"); for (int i=0;i<5;i++) ...{ mydr = mydt.NewRow(); mydr["name"] = "a"; mydr["age"] = "12"; mydt.Rows.Add(mydr); } rb.DataSource = mydt; rb.DataTextField = "name"; rb.DataValueField = "age"; rb.DataBind(); }