Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi can any one say me is it possible to upload only the 10 row values from the gridview.
for example if i create 10rows through coding means it should upload only the 10 row values from excel sheet not all the values.
Posted
Comments
Anupama Roy 15-Feb-11 4:19am    
Are you trying to export first 10 rows from grid to excel?
Sandeep Mewara 15-Feb-11 4:21am    
Not clear. Elaborate more on what are you trying to do.
shadi_abushaar 15-Feb-11 4:32am    
not clear at all...
Ankur\m/ 15-Feb-11 4:43am    
Get only TOP 10 rows and use Order By clause for how you need the top 10 rows to be ordered/filtered.
gowdhami 15-Feb-11 4:51am    
using filtered ( where clause)

1 solution

You can find edited row by the bellow code. Then collect those rows and upload by your mechanism.

MIDL
foreach(GridViewRow row in GridView1.Rows)
{
  if (row.RowState = DataControlRowState.Edit)
  {
    //wirite your code here
  }
}


Thanks,
Mamun
 
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