Hi,
I'm working on an enquiry screen with a WebGrid, some textboxes and a search button. When I click on the search button, I found that the DataSource do query twice.
The first query happens before search button click event and the second query happens after. I don't know why DataSource need to do query twice. Does anyone know how to stop the first query?
Best,
Adam
Can anybody help?
This is an unexpected behavior. Please give me more information regarding how your are connecting to the datasource. You can post your markup for the grid here if you want. I also recommend you have a look at our samples
http://samples.infragistics.com/2009.2/WebFeatureBrowser/Default.aspx->WebGrid->Database Updating.
In general you want to handle either the UpdateRow or the UpdateRowBatch events.
Magued