C# databinding problem

Discussion in 'Programming' started by taarzan, Jul 28, 2009.

  1. #1
    Whenever I insert , update or delete record the databinding in textboxes don't work otherwise it works fine if i just press the next , previous , first or last record button , can anyone temme whats missing ?
    My code is in c#.
    I have done binding through BindingManagerBase can anyone temme how can I solve the problem?
     
    taarzan, Jul 28, 2009 IP
  2. rahulraina

    rahulraina Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    first tell me exactly what is happening with insert/update/delete?
    is record not getting refreshed when u do the above things?
     
    rahulraina, Jul 30, 2009 IP
  3. JV_Nick

    JV_Nick Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    can you paste your code?
    and the error tips
     
    JV_Nick, Jul 31, 2009 IP
  4. rahulraina

    rahulraina Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    SqlDataSrc1.SelectCommand ="..";//write same select query used in SqlDataSrc
    grdview1.DataBind();
     
    rahulraina, Jul 31, 2009 IP
  5. rahulraina

    rahulraina Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Put this code in some function and call this function whenver want to refrsh the record
     
    rahulraina, Jul 31, 2009 IP
  6. taarzan

    taarzan Active Member

    Messages:
    240
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #6
    well all of you thnkx I have sorted the problem myself well the thing is I was missing the refreshing part after insert/update/delete I have done that using function and it was somehow close to what rahul mentioned.
     
    taarzan, Aug 2, 2009 IP