Hi,
After i bind a DataTable to the DataSource property of the chart, i would like to check if the data bound is valid immediately after binding.
How do i do this?
i dont want to check the error using the event 'InvalidDataReceived' as the event gets fired after executing all the other lines after databind.
Why don't you validate the data inside SQL stored procedure or query, from which you are retrieving data.
we are not retreiving the data from SQL but getting it as a XML... so wanted to check if the data is valid after binding to the control
InvalidDataReceived is the only way to accomplish this using the chart API. alternatively, you could write your own function to validate your data, ensuring that it has >0 rows and >0 numeric columns.