Hi,
I use a Linqdatasource to query from MSSQL DB. I use a Gridview to display data and filter from Linqdatasource. I am developing ASP.NET using (VB.NET) in VS2010. Still a begineer.
The problem I have is that when the filter is too high, there are no records returned. This made the Gridview "disappear" .
This is a problem because for every update, I will read a value from a cell in the gridview (Gridview1.rows(1).cell(0).Text). Thus, when the gridview is gone, my reading will not work and gives error.
1) How do I capture the event that there are no records returned?
2) How do I get to read a value from the recordset (after filtering) from the Linqdatasource, before displaying to the Gridview?
I have searched but there were no satisfactory answers around the net.
Please help.