Gridview updating multiple rows online dating statistics age group
hi, what control would u be using to select the multiple rows? Most of the controls when put into a templated controls like gridview,formsview etc get an attribute called command argument,which could be bound to that particular row& later u could use Grid View1. i would be in a position to paste the code here if u let me know the control u intend to use for the selection. I did it once using a hidden gridview with only the checkbox and the id and updated it every page change.
Check out the examples on Grid View Guy which demonstrates how you can get the selected items from the Grid View control. I am trying to update multiple row at same time depending on wheter user has selected checkbox or not. Error here is in my datakey which has alpha numeric value. Claim_Number value is Alpha Numeric, when I try to use propery to get value of claim_number I get an error that it cannot be converted to integer.. Format Exception was unhandled by user code Message="String must be exactly one character long." Source="mscorlib" Stack Trace: at System. To Char(String value, IFormat Provider provider) at System. I was able to do this using object data source methods but I want same thing in STD. Please help me I am bangging my head since from last 3days and not getting any result.... i totaly understan what it says in the article but, I dont know how to get total records, Record 1 of 10 etc. I am getting only the first value of the dropdown although the selected item is changed. So i add a button outside the Grid View and in the handler i call the Update Row method manually for each row. While in regular use, we simple call the update command who does the work, in Item Template there are now update button.