Click here to Skip to main content
15,886,823 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,


How can I update only last row of gridview which is sorted by date in ascending order.

so plz help!!!
Posted

C#
TableAdapter.Update(BindingSource[BindingSource.Count - 1] as DataRow);

Is that what you want?
 
Share this answer
 
Comments
aarohi verma 6-Sep-12 8:47am    
I will try , thanks for suggestion.
[no name] 6-Sep-12 8:53am    
I will be thankful by accepting answer if it helps.
Count Number of Rows.
After you get last row and update the records.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900