Change HyperLinkFormating Strinf on CodeBehind

2 replies. Last post: June 11, 2013 8:37 AM by şahin Arslan
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

Hello,

My code is below, I want set wengrid column hyperlinkformattext in codebehind, First time,when I click button(btnGetFullList) , it is work well , but second time, when I click button(btnGetFullList) , it is not work.(my WebGrid Name: grdDetailSearchPanel).


In additionally, hyper links of webgrid colums is only work on first page items  of webgrid .

protected void btnGetFullList_Click(object sender, EventArgs e)
{
   grdDetailSearchPanel.DataSource = myDataTable;
   grdDetailSearchPanel.DataBind();
}


protected void grdDetailSearchPanel_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)
{            
grdDetailSearchPanel.RootTable.Columns[1].HyperlinkFormatString = Resource.Resource.SpSiteDetailPanel + "?FormID=" + e.Row.Cells[0].Text + "&SirColor=" + e.Row.Cells[13].Text; }

please help me.


All times are GMT -5. The time now is 1:31 PM.
Previous Next