Updating vb control from a c program


You may notice that the last column of the Grid View is a Delete column that let user delete the record from database, so I have placed Delete link button inside the tag and have specified on Click property as Java Script confirm return value, so that when user clicks on it he/she sees a confirmation box whether he/she really wants to delete the record.

Till now our Grid View is ready to be populated, now let’s write a method to populate the Grid View.

ception was unhandled by user code Message=Cross-thread operation not valid: Control 'label_Output' accessed from a thread other than the thread it was created on." I have put the full error in the comments in the code.

I thought using delagates was the correct way of getting around this.

To top it all off, the Automatic Updater is completely open source (LGPL license).


This will make sure that Bind Data() method will not fire when you are going to edit, update or delete the record.That’s why I have placed different templates like Item Template (for normal view) and Edit Item Template (for edit view).You can notice that I have kept Required Field Validator too inside the Edit Item Template as I want the textbox to be validated for empty data.This article scope is limited to Updating and Deleting records using Grid View and I am not using any readymade Data controls for that but manually writing all event methods.


I will be using Sql objects directly into methods to keep the example simple and straight forward.In the same way you can put any kind of Validation controls inside Edit Item Template to validate the form element while user will click Update link.



  1. Pingback:

  2. eric   •  

    (also available as keychains) Love Coups is a such a cute gift idea.

  3. eric   •  

    Use on of the categories to find the right phone sex girl for you.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>