Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
105
how to set the Webdatagrid Footer values programmatically
posted

Hi Team,

    I am using Webdatagrid to show the product related information to user. I used cell editing options to make the user to edit the cell values in Webdatagrid. I added the footer row in every BoundDataField to show the calculated column values. I am setting the footer values programmatically in code behind. But the values are are not displaying in the UI part.

        protected void Page_LoadComplete(object sender, EventArgs e)
        {
            if (Session["DataSource"] != null)
            {
                DataTable dt = (DataTable)Session["DataSource"];
                GridField ColCost = wdgCompany.Columns["Cost"];
                ColCost.Footer.Text = CalculateFooterRowValues();
                
                          
            }
        }