Oh I solved it myself. I just use another
tag to bind data innertext on it and make free the innertext of anchor tag. Then I easily get the gridview.
protected void grdVoucher_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
sp_Acc_ReadAll_JournalVoucherResult entry = e.Row.DataItem as sp_Acc_ReadAll_JournalVoucherResult;
HtmlAnchor lnkVoucher = e.Row.FindControl("lnkVoucher") as HtmlAnchor;
HtmlGenericControl spVoucher = e.Row.FindControl("spVoucher") as HtmlGenericControl;
spVoucher.InnerText = entry.VoucherNo;
e.Row.Cells[1].Text = entry.Debit.ToString();
e.Row.Cells[2].Text = entry.Credit.ToString();
e.Row.Cells[3].Text = Convert.ToDateTime(entry.Date).ToShortDateString();
LinkButton lnkEdit = e.Row.FindControl("lnkEdit") as LinkButton;
lnkEdit.CommandArgument = entry.VoucherNo;
LinkButton lnkDelete = e.Row.FindControl("lnkDelete") as LinkButton;
lnkDelete.CommandArgument = entry.VoucherNo;
GridView grdVDetails = e.Row.FindControl("grdVDetails") as GridView;
List<Acc_Transation> list = CAccTransation.GetAllTransationByVoucherCode(entry.VoucherNo);
grdVDetails.DataSource = list;
grdVDetails.DataBind();
}
}