Question

Locked

Datagrids in .NET

By bytesmin ·
I have a datagrid that diplays information through a query, when the user edits the row, and changes the data in the field that was searched on,theat row still appears after the update link is clicked. Is there anyway to update the datagrid so that when the field searched on has a data change it refreshes and eliminates that row from that search?? Please help me!!!!

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Couple things....

by Master_Techie In reply to Datagrids in .NET

Hi Bytesmin, Do you refresh the grid regardless of the postback? Do you not write the changes back to the database? If you refresh the grid after the data edit, it should display the latest changes. Unless I am missing something... Please post the code you have for us to review, or email me directly at bhimanmanja@hotmail.com

Collapse -

Suggestion

by abhijeet.gawde In reply to Datagrids in .NET

I would suggest that the fastest approach would be if you save the search Criteria and after editing a particular record call the RowFilter method of the DataView Object and Bind the DataView Object to the datagrid

This approach will reduced the 50% of your work of Request to the DataServer as only the Update Query will be called and the Data Retrival query can be bypassed.

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums