how can i fill the some columns in datagridview when page is changed? c#
<p>I have a gridview in page load I change the some images of buttons by using checkfunction However, when i change the index of page. page load don't be called in the program I tried the
GridView1_PageIndexChanging, GridView1_SelectedIndexChanged,GridView1_PageIndexChanged events</p>

<p>In codes in page load, I copied it in the events but it does not work</p>

<pre><code>        DBConnection db = new DBConnection();


        for (int i = 0; i &lt; GridView1.Rows.Count; i++)
        {
            GridViewRow gvrow = GridView1.Rows[i];
            ImageButton ib = (ImageButton)gvrow.Controls[1].Controls[0];

            string feedUrl = ((HiddenField)GridView1.Rows[i].FindControl("HiddenField1")).Value;



            bool res = db.CheckAddedFeeds(feedUrl, User_Name);
            if (res)
            {
                ib.ImageUrl = "~/images/delete.png";
            }

        }
</code></pre>
