I have a Gridview control on an .aspx page. what is the first gridview control event, that gets triggered/fired.
The gridview control has boundcolumns. I have configured the selectcommand in the .aspx page to pull the data from database as shown below:
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionStringff %>"
ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
SelectCommand="SELECT BO_SECID, CUSIP, PRICE FROM table WHERE SETTLEMENT_DT > AS_OF_DT"
/>
</asp:SqlDataSource>
Question: When the sql doesn't return any data from the database I would like to display some message on the .aspx page saying "No records found". To do that, I need to know the gridview event that gets fired.
Any help is appreciated.
nath