Hello team,
I am working on a requirement in my application, where I have to save the values from the grid. The grid looks like below
Period |
Amount |
Column1 |
Column2 |
Column3 |
Column4 |
January |
33,445.00 |
textbox |
textbox |
textbox |
textbox |
February |
22,000.00 |
textbox |
textbox |
textbox |
textbox |
March |
12,000.00 |
textbox |
textbox |
textbox |
textbox |
April |
|
textbox |
textbox |
textbox |
textbox |
The dataset the gets binded to the grid would contain periodID,periodname,amount,column1ID,column1value,column2ID,column2value,column3ID,column3value...
. The periodID would be the datakey value for the grid and the columns from column1 to column4 would be input text boxes. I want to bind the columnID values to the grid columns( column1ID to column1 , column2ID to column2....
).The users will enter some value in columns say column1 and I want to save the value entered in textbox to the database table. But the parameters I need to save would be periodID,textbox input and columnID.
I have two questions here ,
1. Can I bind columnIDs to columns (here in particular when it is having textbox)
2. If the columnIDs can be binded to the grid, can those values be retrieved when the text change event in the grid is called to save data.
I hope I am clear on the explanation. Could you please help me in this.
Thanks,
Kaushik