//bind gvLeaveDetails
        private void BindLeaveDetails()
        {
            DataTable dt = leave.FetchLeaveDetails(UserID);

            if (dt.Rows.Count > 0)
            {
                gvLeaveDetails.DataSource = dt;
                gvLeaveDetails.DataBind();
            }
            else
            {
                //no data found
            }
        }