Exemplo n.º 1
0
    private void GetTasks(string teamId)
    {
        dt = new DataTable();

        dt = objTeam.GetTasks(teamId);
        if (dt.Rows.Count > 0)
        {
            grTasks.DataSource = dt;
            grTasks.DataBind();
        }
        else
        {
            grTasks.DataSource = null;
            grTasks.DataBind();
        }
    }
Exemplo n.º 2
0
    /// <summary>
    /// Gets task in a selected team
    /// </summary>
    /// <param name="teamId">team id to fetch tasks</param>
    private void GetTasks(string teamId)
    {
        dt = new DataTable();

        dt = objTeam.GetTasks(teamId);
        if (dt.Rows.Count > 0)
        {
            ddlTask.DataSource     = dt;
            ddlTask.DataTextField  = "TaskName";
            ddlTask.DataValueField = "TaskId";
            ddlTask.DataBind();

            ddlTask.Items.Insert(0, "--Select task--");
            ddlTask.SelectedIndex = 0;
        }
    }