Templatefield not updating

Im using a LINQData Source to populate a Grid View of Universities.

Each University has an associated State, which is in another table and associated by a foreign key (State ID).

hi, i have used gridview in 2005 wit c#.i need to update my tat i hv placed dropdownlist,checkbox its not updating the i edit the row,we have dropdownlist but not tat database when i edit the row the database value should be in dropdown i click update link i got this error.

When I update (or attempt to), I see know error, but the gridview still does not udpate. Controls[2]; because in database i used bit is 0 or 1if it is in grid view then it shows No or Yes. so when i check the check box 1 should be stored in database so pls help me to do this thanking you ya. shows the same error thank you sir, hey, everything is that code...edit mode did u get the checkboxes in interface..u write ur code in rowupdating event only.u declare cdr as checkbox object globally...? hey, everything is that code...edit mode did u get the checkboxes in interface..u write ur code in rowupdating event only.u declare cdr as checkbox object globally...? ya i hav writen al as u problem is cdrw = (Check Box)Grid View1. Find Control("chk_cdr"); but its showing an i trace it value cdr = null and i got this error Object reference not set to an instance of an object how can i get the 1 when i check the checkbox i tried in checkedchanged event.event also is not working.In my latest job, I've been doing a lot of work with Microsoft and ASP. I've recently started using the AJAX library for ASP.Net 2.0 and, while it has gone surprising well for the most part, there was one problem in general I couldn't find an answer for online so I thought I'd post my solution.

Leave a Reply