I imagine this can be done either by adding rows to the dataset without altering the underlying data (which I can't figure out how to do) or
displaying the SQL query results in the datagrid view without binding the view to the data set. (also can't imagine how to do this and extensive searches havent pointed me the right direction yet)
alternately, if there are any serious sql geeks on this forum I imagine that if I could force the sql query to return the data results and add blank rows for items that don't exist in the database, this would solve the problem too (I have failed at this multiple times as well)
Here is the query:
|
the results of this query are placed in a dataset "ds" and then the datagrid view datasource is set to equal "ds"
Problem is that if I want to add a row, I receive an error that I cant programatically add a row to the datagridview because it has a bound datasource. Is it possible to unbind the datasource while maintaining the data in the datagrid view? Or is there a way to add rows to the datasource without chaning the underlying data (for reporting purposes only) or does anyone know how to force the sql result to include categories in the list of job_obj list: '8111','8141','8142','8176','8299'... which have no record in the any of the database tables?
I hope this question is clear and that someone can point me in the right direction.
--thanks, M
Replies
Know the answer? Post it — somebody with the same question will find it here.