Beispiel #1
0
    private void DetailGridBinding(string pos_id)
    {
        Biz_Positions positions = new Biz_Positions("EST_POSITION_" + pos_id, pos_id);
        DataSet       ds        = positions.GetPositions();

        UltraWebGrid2.DataSource = ds;
        UltraWebGrid2.DataBind();

        InitForm();
    }
Beispiel #2
0
    public static void BindPositionValue(DropDownList ddl, string strPos)
    {
        string strPosTableName = "EST_POSITION_" + strPos;

        Biz_Positions positions = new Biz_Positions(strPosTableName, strPos);
        DataSet       ds        = positions.GetPositions();

        ddl.DataSource     = ds;
        ddl.DataTextField  = "POS_NAME";
        ddl.DataValueField = "POS_ID";
        ddl.DataBind();
    }