Please i have the below code that upon button click event, i create a delimited string from a gridview and display it in a textbox. Currently the loop creates the delimited string using all the columns available in the gridview.Now my task is to
- Use template textbox field inside the gridview instead of the normal gridview default
- I don't need all the columns to create the delimited string.I need Specific columns Only. So now do how i specify only the columns i need to create the delimited string using template textbox fields. Per the image below i don't want the storeid column to be part of the delimited string

Below is also the working code which does not use template fields
- protected void CreatePOEntryString2()
- {
- {
- string MyResults = "";
- foreach (GridViewRow gRow in griditem.Rows)
- {
- if (MyResults != "")
- MyResults += "|";
- string MyRow = "";
- foreach (TableCell tCell in gRow.Cells)
- {
- if (MyRow != "")
- MyRow += ",";
- MyRow += tCell.Text;
- }
- MyResults += MyResults;
- }
- txtPODetails.Text = MyResults + ItemPipe;
- }
- }
Sachin SinghPosted Dec 20, 2020, 1:43 PM