sql data source re binding question
        Posted  
        
            by Keith
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Keith
        
        
        
        Published on 2010-05-08T10:33:13Z
        Indexed on 
            2010/05/08
            10:38 UTC
        
        
        Read the original article
        Hit count: 227
        
In my gridview after an insert operation has been done I am filtering the sqldatasource by ID. I am getting an error that the item drop down box selected value is not in the list. To test my theory I created a new sql data source with only the select statement and after the insert operation I am binding it to my grid view and filtering by Id and I get my result.
The question Having a second data source is not the solution so is it possible that there is some way to use sqldatasource1? what I tried is sqldatasource.databind() and gridview.databind() on the inserted and inserting metheds in many test cases but still that doesnt work.
I dont have any filters applied on the original data source?
© Stack Overflow or respective owner