protected void BindDropPriority()
    {
        colPriority = objPriority.Get_All();
        drpPriority.DataTextField  = "name";
        drpPriority.DataValueField = "priorityid";
        drpPriority.DataSource     = colPriority;
        drpPriority.DataBind();
        ListItem item = new ListItem();

        item.Text  = "-------------Select-------------";
        item.Value = "0";
        drpPriority.Items.Add(item);
        drpPriority.SelectedValue = "0";
    }
Exemplo n.º 2
0
    public void BindGrid()
    {
        BLLCollection <Priority_mst> col = new BLLCollection <Priority_mst>();

        col = Priorityobj.Get_All();
        Prioritygrdvw.DataSource = col;
        Prioritygrdvw.DataBind();
        ClearControl();
    }