Benefits of the system grid: It is too convenient, paging, different color of the line, click the title header to sort
Disadvantage: to implement Ajax, It is not intuitive to introduce it. You cannot define it as you like.
Advantages of Self-grid: self-control
Disadvantages: simple, nothing, allCodeWrite it by yourself. Question: can it be written? -- Yes!
Imagine the operation mode:
· Add a link at the bottom of the Grid. Add a row in the table and modify each row one by one. After the cursor leaves, it is saved to the database, to save a new record immediately, you must allow the existence of a blank record. When multiple users add a new record at the same time, the keyword may be repeated. Another method is to pop up a dialog box. After saving the record, append immediately to the end of the table.
· The mesh can be modified. One way is to directly double-click the modification and save the modification to the database after the cursor leaves. The other way is to add a modification link to the right of each row, after you click it, a dialog box is displayed. After you save it, update it to the table. You can also click Modify to display the SAVE and cancel links. Click Save to save the data; method 4: add a link to the bottom, select the row, and click Modify at the bottom. A dialog box is displayed.
· The grid allows deletion. Add a delete link to the right of each row, click it, and delete it from the database. At the same time, the row is also deleted from the table on the interface.
· After the mesh is implemented, the cursor leaves and immediately saves it to the database or adds a submit button. However, the latter solution is not good. If there are too many steps, it will be closed if it is accidentally submitted, repair is gone.
......
The more you want, the more you feel that you do not want the control provided by the system. It is a simple implementation, and then gradually modified.