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;
}
}
{
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