Basically, I have a gridview table with a dropdownlist column and I need a way to retrieve the selected item from it. Now I'm using an imagebutton in order to get the selected item from the dropdownlist to pop-up as a message box (as a string). I already know how to get text from a boundfield. However, using the same code to get the dropdown list item won't work. This is a snippet from my code:
I am new to asp.net and was trying to use datagridview in my webform. I was able to bind it to my database but I cannot make the datagridview's buttonfield respond. It seems the grid's SelectedIndexChanged event is not being fired or has issues with postback. Even a very simple statement is not being executed by the program e.g.
I am using jquery for delete confirmation box in mvc using linq to sql..I need to delete a records of my particular id.I can do my delete operation.I am getting an issue like this, if i am deleting the 5 th record of my database my first record gets deleted.I couldn do my deletion from downwards but i can do vise versa.
I am select one mdb database from open dialog box.All records in the database (all table data value)will automatically delete. How to implement this concept.
im using checkboxes in gridview and trying to delete (one or more )records from db Everything is ok and no runtime errors.. getting the message "records deleted " but when i check the db i reilaize that record still exist.
I have Revision column in Quote table with time stamp (MySql table) now i am viewing the entire date and time my end user want to view only Date he doesnot want to see time how can i pull only date.i am displaying revision column in two ways one in grid view and another one in field value
Query in my Grid view
Dim query As String = "SELECT QuoteNumber,Revision,Vendor,PartNumber,status,Customer,Requestor from quotes"
On select check box in grid view, filed values will be loaded with data.
I am trying to run a delete command from multiple tables and cant seem to get it to work. When you run the delete it just refreshes the gridview... Below is my delete command and parameters along with the code behind that I run.
DeleteCommand="DELETE FROM RecipeBox, Recipes WHERE (RecipeBox.ID = @RecipeID) or (Recipes.RecipeID = @RecipeID)"> <DeleteParameters> <asp:Parameter Name="RecipeID" />
I have bounded my GridView to an ObjectDataSource. I have set a delete method for this ObjectDataSource. Now how can I delete my GridView's records with enable Deleting?
I have the below code snippet i found, but when running the delete command I get an run-time error of: Index was out of range. Must be non-negative and less than the size of the collection.
I am trying to display checkboxes in front of every row in list view. So that after selecting the desired checkboxes user clicks on delete button and we should delete that records.