c# - gridview cell text is blank after postback -


I'm inspect cell text'm using Bauld field and Raudabaund event. When a postback is nothing in the cell text but when I causes a postback cell text is clear, but it does not clear the display (e. RO. Seals [2]. Text is what I see down am)

  void GridView1_RowDataBound (object sender, GridViewRowEventArgs e) {if (e.Row.RowType == DataControlRowType.DataRow) {if (e.Row.Cells [2] .text! = TbUserName.Text) {LinkButton B = e.Row.Cells [1]. [0] control as linkbutton; B.Visible = false; }}} Protected Zero Page_load (Object Sender, EventEurge E) {INMerelabel & lt; Tasks & gt; Work = _dbc.Tasks.ToList (); GridView1.DataSource = Tasks; GridView1.DataBind (); }  

You are being offered what page the first time that track or a Loading in response to postback Gridview is currently tied to each postback.

  protected void Prisht_lod (object sender, Iventaarjis e) {if (! IsPostBack) {IEnumerable & lt; Work & gt; Work = _dbc.Tasks.ToList (); GridView1.DataSource = Tasks; GridView1.DataBind (); }}  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -