コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        DataTable dr;

        dr = _objRepositary.getRecipies();
        RecipeGrid.DataSource = dr;
        RecipeGrid.DataBind();
    }
コード例 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        DataTable dr;

        dr = _objRepositary.getRecipies();
        RecipeGrid.DataSource   = dr;
        RecipeGrid.DataKeyNames = new string[] { "RecipeId" };
        RecipeGrid.DataBind();
    }