コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                DataSetService.DataSetWebService service = new DataSetService.DataSetWebService();
                DataSet ds = service.GetDataSet();

                gdvStudent.DataSource = ds.Tables["Student"];
                gdvStudent.DataBind();
                gdvCourse.DataSource = ds.Tables["Course"];
                gdvCourse.DataBind();
                gdvSC.DataSource = ds.Tables["SC"];
                gdvSC.DataBind();
            }
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                DataSetService.DataSetWebService service = new DataSetService.DataSetWebService();
                DataSet ds = service.GetDataSet();

                gdvStudent.DataSource = ds.Tables["Student"];
                gdvStudent.DataBind();

                gdvCourse.DataSource = ds.Tables["Course"];
                gdvCourse.DataBind();

                gdvSC.DataSource = ds.Tables["SC"];
                gdvSC.DataBind();
            }
        }