0
string search= textbox1.text;
protected void grd_RowDataBound(Object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
foreach(TableCell tc in e.Row.Cells)
{
tc.Text = tc.Text.Replace(search, "<span style='color:Red;'>" + search + "</span>");
}
}
}
검색된 단어를 강조 표시하기 위해 해당 코드를 사용하지만 브라우저에서 디버그 버튼을 사용할 때 : 편집, 선택, 삭제가 없습니다. 이벤트 버튼을 다시합니다.rowdatabound에 GridView, 편집, 삭제, 옵션 선택이 사라졌습니다
내가 확인하고 셀 컨트롤이 포함되어 있는지 확인하는 것이 작업을 수행하는