dynamically added controls in gridview (checkbox) disappear after postback asp.net

dynamically added controls in gridview (checkbox) disappear after postback asp.net

hi am added a dynamic create checkbox to grid view column

hi am added a dynamic create checkbox to grid view column

but it gives me null value on button click

the checkbox disappear after post back plz help

here is my code

protected void grdreport_RowDataBound(object sender, GridViewRowEventArgs e)
{
    int temp = e.Row.Cells.Count;

temp--;

if (e.Row.RowType == DataControlRowType.DataRow)
{

    if (temp >= 3)
    {
        strheadertext1 = grdreport.HeaderRow.Cells[3].Text;

        CheckBox cb1 = new CheckBox();

        cb1.Text = e.Row.Cells[3].Text;

        e.Row.Cells[3].Controls.Add(cb1);

    }

}

}

and on my button click where i check value of checkbox is checked or not is

foreach (GridViewRow item in grdreport.Rows)
{
    if (item.RowType == DataControlRowType.DataRow)
    {
        CheckBox checkbox1 = (CheckBox)item.FindControl("cb1");
        // cb1.Checked = true;
        if (checkbox1.Checked)
        {
        }
    }
}


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Add asp.net Identity in empty project

LIKE | COMMENT | SHARE | SUBSCRIBE Today, in this tutorial you will see the process of adding an ASP.NET Identity to the ASP.NET Web Application developed in...

List all users from asp net core identity

LIKE | COMMENT | SHARE | SUBSCRIBE In this video, i will show you How to retrieve and display all the registered application users in asp.net core using the ...

Extend IdentityUser in ASP NET Core

LIKE | COMMENT | SHARE | SUBSCRIBE In this tutorials, I will show you how to extend IdentityUser in asp.net core.. Subscribe & Stay Connected! Thank You! ♥ #...