Datagridview datasource not updating

Data Bind();//here i am getting the exception like this : A field or property with the name 'emp Id' was not found on the selected data source. I'll tell u amethod how it can be accomplished using gridview.

Write("data updated"); *** plz do reply than Q very much for the reply Sorry,this time I got another exception actually I want update one row in the database and not total fields some of the fields I want to update In mygirdview I have the information like this emp Id user Name emp Name gender address pwd loginstatus update cancel 1 kavita geeta f hjghg ghh 0 after that I clicked on the update link but now I got another exception my Grid View.

datagridview datasource not updating-62datagridview datasource not updating-80datagridview datasource not updating-2datagridview datasource not updating-69

This makes more sense when we think about a Text Box column.

Changing the active status for a given person will not fire the event until some other object on the form is clicked and receives focus.

Anytime a grid event is handled, a notification will pop-up and fade out.

Write("data updated"); here the exception is Invalid Opration Exception was unhandled by user code Update unable to find Table Mapping['Employee Table'] or Data Table 'Employee Table'. Open(); Sql Data Adapter da Select = new Sql Data Adapter("SELECT * FROM Employee Table", conn); Sql Command Builder cb Select = new Sql Command Builder(da Select); Data Set ds Select = new Data Set(); da Select.

Write("data updated"); I changed the code what ever you send previously protected void my Grid View_Row Updating(object sender, Grid View Update Event Args e) } but again the same exception is throwing again please tell me where to change the code.......... Open(); Sql Data Adapter da Select = new Sql Data Adapter("SELECT * FROM Employee Table", conn); // Sql Command Builder cb Select = new Sql Command Builder(da Select); Data Set ds Select = new Data Set("Emploee Table"); da Select.

Leave a Reply