Basit Khan

Basit Khan

  • 1.3k
  • 336
  • 115.5k

GridView Column values saved in Rows field

Feb 16 2019 8:40 AM
Hi,
 
I have attendance table.
 
Atn_No
Atn_Date
Atn_EmpNo
Atn_Type
 
I have excel file, which i import in gridview, the excel file data/gridview data is given below.
 
EMPNO 1 2 3 4 5 6 7 8 9 10 11 12
935 RS RS RS RS OD OD OD OD OD OD EX EX
936 RS RS RS OD OD OD OD OD OD OD OD OD
 
How to save this into above table because 1, 2, 3 date as diffierent columns.
 
If above table is like below table then easily save into db.
 
EMPNO DAYS TYPE
935 1 RS
935 2 RS
935 3 RS
935 4 RS
935 5 OD
935 6 OD
935 7 OD
935 8 OD
935 9 OD
935 10 OD
935 11 EX
935 12 EX
936 1 RS
936 2 RS
936 3 RS
936 4 OD
936 5 OD
936 6 OD
936 7 OD
936 8 OD
936 9 OD
936 10 OD
936 11 OD
936 12 OD
 
please help on this. 
 
Thanks
Basit. 

Answers (1)