Inserting Empty Row in Grid View in ASP Dot net + vb dot net
-
How can i add empty row in Grid View in ASP dot net using VB Dot net. All fields are bound but i want to count TOTAL manually. e.g Type Col1 col2 col3 1 10 20 30 2 5 1 5 3 1 5 2 Total 16 26 37 Help please
-
How can i add empty row in Grid View in ASP dot net using VB Dot net. All fields are bound but i want to count TOTAL manually. e.g Type Col1 col2 col3 1 10 20 30 2 5 1 5 3 1 5 2 Total 16 26 37 Help please
You can add your code on GridView databound event ..
Vinod Kumar Prajapati Software Engineer EBC Publishing Pvt. Ltd.
-
You can add your code on GridView databound event ..
Vinod Kumar Prajapati Software Engineer EBC Publishing Pvt. Ltd.
Send me source code please
-
How can i add empty row in Grid View in ASP dot net using VB Dot net. All fields are bound but i want to count TOTAL manually. e.g Type Col1 col2 col3 1 10 20 30 2 5 1 5 3 1 5 2 Total 16 26 37 Help please
You can use ItemTemplate og GridView for inserting rows. Use Label controls in that. When you want to add empty row, add empty labels to it and later you can assign text to that row. :)
-
How can i add empty row in Grid View in ASP dot net using VB Dot net. All fields are bound but i want to count TOTAL manually. e.g Type Col1 col2 col3 1 10 20 30 2 5 1 5 3 1 5 2 Total 16 26 37 Help please
Yes .. You can do this. Just follow these simple steps mentioned here : Add New Row in DataGrid[^] Hope you like my solution. :rose:
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Windows7 API Code Pack
Simplify Code Using NDepend
Basics of Bing Search API using .NET -
How can i add empty row in Grid View in ASP dot net using VB Dot net. All fields are bound but i want to count TOTAL manually. e.g Type Col1 col2 col3 1 10 20 30 2 5 1 5 3 1 5 2 Total 16 26 37 Help please
Hi, for that you can add footer template in your grid view and take rowdatbound event of the gridview at server side. in the rowdatbound event you can check each row this way protected void GVLeavelist_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { // Fetch each row here and calculate the data ViewState["Total"] = 'Your Value'; } else if((e.Row.RowType == DataControlRowType.Footer) { // then used viewstate value to display the total } }
-
How can i add empty row in Grid View in ASP dot net using VB Dot net. All fields are bound but i want to count TOTAL manually. e.g Type Col1 col2 col3 1 10 20 30 2 5 1 5 3 1 5 2 Total 16 26 37 Help please