You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ToenableeditinginASP.NETMVCGrid, refertotheediting [Documentation](https://ej2.syncfusion.com/aspnetmvc/documentation/grid/editing/edit). In the below example, the inline edit `Mode` is enabled and [Toolbar](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.Grids.Grid.html#Syncfusion_EJ2_Grids_Grid_Toolbar) property is configured to display toolbar items for editing purposes.
580
+
ToenableeditinginASP.NETMVCGrid, refertotheediting [documentation](https://ej2.syncfusion.com/aspnetmvc/documentation/grid/editing/edit). In the below example, the inline edit `Mode` is enabled and [Toolbar](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.Grids.Grid.html#Syncfusion_EJ2_Grids_Grid_Toolbar) property is configured to display toolbar items for editing purposes.
582
581
583
582
{%tabs%}
584
583
{%highlightcshtmltabtitle="Index.cshtml"%}
@@ -626,7 +625,7 @@ To insert a new row, simply click the **Add** toolbar button. The new record edi
626
625
{%highlightcstabtitle="GridController.cs"%}
627
626
628
627
/// <summary>
629
-
/// Inserts a new order record into the "Orders" table in the PostgreSQL database.
628
+
/// Inserts a new order record into the orders table in the PostgreSQL database.
630
629
/// </summary>
631
630
/// <paramname="value">The CRUDModel containing the order details to be inserted.</param>
632
631
/// <returns>Returns an HTTP response indicating success or failure.</returns>
@@ -677,7 +676,7 @@ To edit a row, first select desired row and click the **Edit** toolbar button. T
677
676
{%highlightcstabtitle="GridController.cs"%}
678
677
679
678
/// <summary>
680
-
/// Updates an existing order record in the "Orders" table in the PostgreSQL database.
679
+
/// Updates an existing order record in the orders table in the PostgreSQL database.
681
680
/// </summary>
682
681
/// <paramname="value">The CRUDModel containing the updated order details.</param>
683
682
/// <returns>Returns an HTTP response indicating success or failure.</returns>
@@ -729,7 +728,7 @@ To delete a row, simply select the desired row and click the **Delete** toolbar
729
728
{%highlightcstabtitle="GridController.cs"%}
730
729
731
730
/// <summary>
732
-
/// Deletes an order record from the "Orders" table in the PostgreSQL database.
731
+
/// Deletes an order record from the orders table in the PostgreSQL database.
733
732
/// </summary>
734
733
/// <paramname="value">The CRUDModel containing the OrderID of the record to be deleted.</param>
735
734
/// <returns>Returns an HTTP response indicating success or failure.</returns>
@@ -747,7 +746,7 @@ public IHttpActionResult Remove(CRUDModel<Orders> value)
747
746
// Open the database connection.
748
747
Connection.Open();
749
748
750
-
// Define an SQL query to delete a record from the "Orders" table where OrderID matches.
749
+
// Define an SQL query to delete a record from the orders table where OrderID matches.
751
750
stringqueryStr="DELETE FROM \"Orders\" WHERE \"OrderID\"=@OrderID";
752
751
753
752
// Create a command object to execute the delete query.
@@ -776,7 +775,7 @@ To perform batch operation, define the edit `Mode` as **Batch** and specify the
776
775
{%highlightcstabtitle="GridController.cs"%}
777
776
778
777
/// <summary>
779
-
/// Performs batch update operations (insert, update, and delete) on the "Orders" table in a single transaction.
778
+
/// Performs batch update operations (insert, update, and delete) on the orders table in a single transaction.
780
779
/// </summary>
781
780
/// <paramname="value">The CRUDModel containing lists of added, changed, and deleted order records.</param>
782
781
/// <returns>Returns an HTTP response indicating the success or failure of the batch operation.</returns>
@@ -796,7 +795,7 @@ public IHttpActionResult BatchUpdate(CRUDModel<Orders> value)
796
795
// Process the list of updated records.
797
796
if (value.changed!=null&&value.changed.Count>0)
798
797
{
799
-
// Define an SQL query to update records in the "Orders" table.
798
+
// Define an SQL query to update records in the orders table.
800
799
stringupdateQuery="UPDATE \"Orders\" SET \"CustomerID\"=@CustomerID, \"Freight\"=@Freight, \"EmployeeID\"=@EmployeeID, \"ShipCity\"=@ShipCity WHERE \"OrderID\"=@OrderID";
801
800
802
801
// Create a command object to execute the update query within the transaction.
@@ -824,7 +823,7 @@ public IHttpActionResult BatchUpdate(CRUDModel<Orders> value)
824
823
// Process the list of newly added records.
825
824
if (value.added!=null&&value.added.Count>0)
826
825
{
827
-
// Define an SQL query to insert new records into the "Orders" table.
826
+
// Define an SQL query to insert new records into the orders table.
ToenableeditinginASP.NETMVCGrid, refertotheediting [Documentation](https://ej2.syncfusion.com/aspnetmvc/documentation/grid/editing/edit). In the below example, the inline edit `Mode` is enabled and [Toolbar](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.Grids.Grid.html#Syncfusion_EJ2_Grids_Grid_Toolbar) property is configured to display toolbar items for editing purposes.
1381
1379
@@ -1438,13 +1436,13 @@ public class CRUDModel<T> where T : class
/// Performs batch update operations (insert, update, and delete) on the "Orders" table in a single transaction.
1707
+
/// Performs batch update operations (insert, update, and delete) on the orders table in a single transaction.
1710
1708
/// </summary>
1711
1709
/// <paramname="value">The CRUDModel containing lists of added, changed, and deleted order records.</param>
1712
1710
/// <returns>Returns an HTTP response indicating the success or failure of the batch operation.</returns>
@@ -1726,7 +1724,7 @@ public IHttpActionResult BatchUpdate(CRUDModel<Orders> value)
1726
1724
// Process the list of updated records.
1727
1725
if (value.changed!=null&&value.changed.Count>0)
1728
1726
{
1729
-
// Define an SQL query to update records in the "Orders" table.
1727
+
// Define an SQL query to update records in the orders table.
1730
1728
stringupdateQuery="UPDATE \"Orders\" SET \"CustomerID\"=@CustomerID, \"Freight\"=@Freight, \"EmployeeID\"=@EmployeeID, \"ShipCity\"=@ShipCity WHERE \"OrderID\"=@OrderID";
1731
1729
1732
1730
// Create a command object to execute the update query within the transaction.
@@ -1754,7 +1752,7 @@ public IHttpActionResult BatchUpdate(CRUDModel<Orders> value)
1754
1752
// Process the list of newly added records.
1755
1753
if (value.added!=null&&value.added.Count>0)
1756
1754
{
1757
-
// Define an SQL query to insert new records into the "Orders" table.
1755
+
// Define an SQL query to insert new records into the orders table.
0 commit comments