Welcome to plsql4all.blogspot.com SQL, MYSQL, ORACLE, TERADATA, MONGODB, MARIADB, GREENPLUM, DB2, POSTGRESQL.

Friday, 13 June 2014

Bind Data Dynamically To GridView Rows

protected void gv_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                string strOut = Regex.Replace(e.Row.Cells[2].Text, "#.*?#", string.Empty);
                e.Row.Cells[2].Text = strOut;
            }
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                string strOut1 = Regex.Replace(e.Row.Cells[14].Text, "#.*?#", string.Empty);
                e.Row.Cells[14].Text = strOut1;
            }
        }

No comments:

Post a Comment

Please provide your feedback in the comments section above. Please don't forget to follow.