Gridview rowupdating boundfield value
How to retrive Boundfield value of gridview on rowupdating event.
I tried this way but not working int idx = grdview1.
Hence using Row Data Bound event, we can dynamically change the code value to some meaningful and easy to understand words.
For example, consider a scenario of Meeting attendance. Net Question Answer site, specially started to allow visitors of this site ask their doubts and queries. Just click the Ask Now button and ask your question now.
For this situation, many developers use invisible columns (Hidden columns) in the gridview to identify that row.
We can achieve the same functionality using Datakeys.
I had a assignment I need to show only description and not ID. By using Datakeynames property you will get the selected row primary key. This code is a bit complex but just add it knowing that we may refer to it in the future.Here in Grid View, in the beginning the major part is to make the decision of putting either a bound field or a template field and the answer is simple: When we want to place any control inside the Grid View then we can go for template field, otherwise bound field will be simpler.Two of the fields are True/False and I want to put a Drop Down List in the table.I have my code working so that the current value shows in the first of the two True/False columns (trying one as a test).