First, I load up some data: After that, I’m doing some work to make my Grid View look beautifull, adding all columns by hand.But for this demo, I’ll show you the simple version, that also doesn’t work 🙂Let’s bind the data to our Grid View and have it autogenerate our columns, as well as an edit button.
Tables["EMP"]; // Indicate Data Column EMPNO is unique // This is required by the Oracle Command Builder to update the EMP table table. Unique = true; // Get the first row from the EMP table Data Row row = table.
Fill(dataset, "EMP"); // Get the EMP table from the dataset Data Table table = dataset. To String()); row["SAL"] = sal + .01; // Now update the EMP using the adapter // The Oracle Command Builder will create the Update Command for the // adapter to update the EMP table adapter. Write Line("Row updated successfully"); } } // C# using System; using System.