Hi @Xander Todor , The demo I have posted you it could add new td on your existing gridview. And you don't want to use rowdatabound,there are two ways:
- Sum two Eval based on your codes. Just like this: <asp:TemplateField> <ItemTemplate> <asp:Label ID="BalanceCalculation" runat="server" Text='<%#string.Format("{0:C2}",Convert.ToInt32(Eval("Budget"))+Convert.ToInt32(Eval("TotalCost")))%>' /> </ItemTemplate> </asp:TemplateField> 2.Sum using jquery.
jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. You could refer to below article: https://jquery.com/
Best regards, Yijing Sun
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.