コード例 #1
0
        /// <summary>
        /// Set Grid Data source
        /// </summary>
        /// <param name="addRow"></param>
        /// <param name="deleteRow"></param>
        private void BindGrid()
        {
            TenureLandBLL objTenureLandBLL = new TenureLandBLL();

            GrdLandTenure.DataSource = objTenureLandBLL.GetTenureLand("");
            GrdLandTenure.DataBind();
        }
コード例 #2
0
        /// <summary>
        /// Search tenureland data from the database and set filterd data to Grid Data source
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            TenureLandBO objTenureLand = new TenureLandBO();
            string       TenureLandName;

            TenureLandName = txtSearch.Text.Trim();
            TenureLandBLL objTenureLandBLL = new TenureLandBLL();

            GrdLandTenure.DataSource = objTenureLandBLL.GetTenureLand(TenureLandName);
            GrdLandTenure.DataBind();
        }