I am looking for sample code to write out data from a Gridview Row and Column to a TextFile. Data will be entered line by line into a Sql 2005 Database by row and column. I can have up to 100 rows with 14 columns. The textfile will be written out with different positions using a String Builder Class with no concatanations. Say I have a transaction with 100 rows and 14 columns. I would pull the transaction by a Data Posted Parameter. My Gridview would load all 100 lines with 14 columns. I need to be able to reference each row and column by name so the data will be written out in the correct position. Each row could have fields with different positions in the textfile.
My question is this. How do I reference each piece of data row and column. Say Row1 Column1, Row1 Column2 and so on. I need to know what is in each field.
Any sample data writing out 3 columns with 3 rows would help me.