magritton
1/24/2015 - 2:18 AM

This is an example of a default value in a dev express gridview component. It uses the session key to fill in the data.

This is an example of a default value in a dev express gridview component. It uses the session key to fill in the data.

 protected void gvAddItems_InitNewRow(object sender, DevExpress.Web.Data.ASPxDataInitNewRowEventArgs e)
        {
            string strSessionKey = (string)Session["SessionKey"];
            e.NewValues["SessionKey"] = (string)Session["SessionKey"];
        }