You'll be able to ask questions about coding or chat with the community and help others.

x Matters delivers integration-driven collaboration that relays data between systems, while engaging the right people to proactively resolve issues.

Following code will show you how you can get Row Index, Product ID and Command Name of the button when user click any button in the Grid View.

If doing everything in a single statement isn't possible due to the limitations of SQL, we can still save roundtrips by grouping statements in a block, either by using an anonymous block in databases that support them: (You can easily send these anonymous blocks over JDBC, as well!

) Or, by emulating anonymous blocks using the JDBC batch API (has its limitations), or by writing stored procedures.

The code looks like this: As shown previously on this blog, there is a significant cost of JDBC server roundtrips, which can be seen in the JDBC benchmark.

This cost is much more severe if we unnecessarily create many server roundtrips for a task that could be done in a single roundtrip, namely by using a SQL bulk .

In the following tutorial, I will show you different techniques you can use to display command buttons in Grid View.

Command Name Dim current Row Index As Integer = Int32.

It also has many different types of fields (columns) such as hyperlinks, images, checkboxes etc.

To String()) Dim Product ID As String = Grid View1.

With larger data sets being updated, the two results will converge. While we're running individual row-by-row updates, we're sending all the update statements in one batch to the SQL engine.

This does save a lot of time on the network and all the layers in between.

If you cannot guess which one will be much faster, remember that row-by-row kinda rhymes with "slow-by-slow" (hint, hint). I'm doing two benchmarks for this: Run 1, Statement 1 : .01457 (avg : .0098) Run 1, Statement 2 : .0133 (avg : .01291) Run 1, Statement 3 : .02351 (avg : .02519) Run 2, Statement 1 : .00882 (avg : .0098) Run 2, Statement 2 : .01159 (avg : .01291) Run 2, Statement 3 : .02348 (avg : .02519) Run 3, Statement 1 : .01012 (avg : .0098) Run 3, Statement 2 : .01453 (avg : .01291) Run 3, Statement 3 : .02544 (avg : .02519) Run 4, Statement 1 : .00799 (avg : .0098) Run 4, Statement 2 : .01346 (avg : .01291) Run 4, Statement 3 : .02958 (avg : .02519) Run 5, Statement 1 : .00749 (avg : .0098) Run 5, Statement 2 : .01166 (avg : .01291) Run 5, Statement 3 : .02396 (avg : .02519) The difference between Statement 1 and 3 is a factor of 2.5x.