Updating rows in datatable Talk dirty with hot girls for free chat
There are only about 4 tables in the dataset and so it doesnt make for a very big loop.
Plus, its just looping through the rows of the one datatable thats very slow.
My code goes below protected void Grid View1_Row Updating(object sender, Grid View Update Event Args e) it means when you click Edit button it populate item. Text; But you have to write the update method by passing the values; Hope it helps Thanks Thanks Aj Ptl for the help.. protected void Grid View1_Row Updating(object sender, Grid View Update Event Args e) Thanks Aj Ptl for the help..
now you have to update that records in DB In this case I'd write Item Command handler event and use update query on this event.
It can be used to get existing data, or set new data to be used for the row.
Hi, I am having trouble doing an update in a gridview.
This should reduce the process time for this method.
In the method you would then have only 1 foreach loop instead of 2.
For example: when the user performs the search all matching rows are displayed, (paginated with a rich:data Sroller) At the bottom of the table I would like to display the total rows returned.
When the user then filters the data, using rich:column filter By, I'd like to display the matching rows that are displayed.
The 'count' variable is there just so I can see how many rows it has churned through in a set period of time.
Currently its taking around 15 secs to go through about 60 rows which you can see is painfully slow. Once in a while..once in like 10-15 tries, it'll just go through the entire table in a matter of seconds!