Esempio n. 1
0
    protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e)
    {
        DataRowView dr = (DataRowView)e.Data;

        DataSet      ds          = questionEstMaps.GetQuestionEstMap("", dr["Q_OBJ_ID"].ToString());
        string       returnEstID = "";
        string       est_names   = "";
        Biz_EstInfos estInfo     = null;

        foreach (DataRow row in ds.Tables[0].Rows)
        {
            estInfo = new Biz_EstInfos(COMP_ID, row["EST_ID"].ToString());

            returnEstID += row["EST_ID"].ToString() + ",";
            est_names   += estInfo.Est_Name + ",";
        }

        returnEstID = returnEstID.Substring(0, returnEstID.LastIndexOf(","));
        est_names   = est_names.Substring(0, est_names.LastIndexOf(","));

        e.Row.Cells.FromKey("Q_OBJ_NAME").Value = string.Format("<a href=\"#null\" onclick=\"GetQuestionObjects('{0}','{1}','{2}','{3}','{4}','{5}');\">{3}</a>"
                                                                , returnEstID
                                                                , est_names
                                                                , dr["Q_OBJ_ID"]
                                                                , dr["Q_OBJ_NAME"]
                                                                , dr["Q_OBJ_TITLE"]
                                                                , dr["Q_OBJ_PREFACE"]
                                                                );
    }
Esempio n. 2
0
    private void BindQuestionGrid()
    {
        Biz_QuestionEstMaps questionEstMaps = new Biz_QuestionEstMaps();

        UltraWebGrid1.Clear();
        ugrdPrjList.Clear();

        UltraWebGrid1.DataSource = questionEstMaps.GetQuestionEstMap(EST_ID, "");
        UltraWebGrid1.DataBind();
    }