i want add one more column to grid and bind that data and display by using datarowbound event
Loading
i want add one more column to grid and bind that data and display by using datarowbound event
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Lokesh VarmanPosted Jul 23, 2023, 1:15 PM
To add one more column to a grid and bind the data in the
DataRowBoundevent using ASP.NET Web Forms,In your ASPX page, open the markup and add a new
orto the GridView. For demonstration purposes, let's assume you want to add a column for displaying the "Status" of each row. You can use ato achieve this.In your code-behind file (C#), bind the data to the GridView. You can do this during the Page_Load event or any other appropriate event.
In the
DataRowBoundevent, you can access the newly added column and set its value based on the data in the corresponding row.