how to pick last data entered in the gridview

Posted by Saanjhi under ADO.NET on 10/2/2013 | Points: 10 | Views : 1042 | Status : [Member] | Replies : 3
want to show the last data saved in sql server 2000 in a label




Responses

Posted by: Surendrasinh on: 10/2/2013 [Member] Starter | Points: 25

Up
0
Down
may this link helpful you.
http://msdn.microsoft.com/en-us/library/system.data.dataview.rowstatefilter.aspx

Saanjhi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saanjhi on: 10/2/2013 [Member] Starter | Points: 25

Up
0
Down
sorry for wrong ques its how to pick last data saved in gridiview and show it in a label

Saanjhi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vinothkumar on: 4/11/2014 [Member] Starter | Points: 25

Up
0
Down
int rowcount=Gridview1.Rows.Count();
Label1.Text=GridView1.Rows[rowcount]["ColumnName"].Text;

Regards,
Vinoth kumar

Saanjhi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response