Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: syno
  • Order by date
  1. syno

    Search then Edit Datagrid

    Hi Your right, I think I was getting a bit confused. However when I search my datagrid and it brings up one record say, in one row. If I then click edit, it edits the first record in the database rather then the record that was found. So if I do a search for a record ID and the search...
  2. syno

    Search then Edit Datagrid

    Thanks for your help. I have a search facility that only returns a few columns of data based on the search criteria. When I go to edit one of the columns that is returned, it does not edit the column the search returned because my edit event does not recognise the column. Instead it searches...
  3. syno

    Search then Edit Datagrid

    Thats fine, but when I use that it does not recognise to edit the correct field in my database, ie the edit event is not using the Datakey I have setup?
  4. syno

    Search then Edit Datagrid

    Thats fine, but when I use that it does not recognise to edit the primary feild column in my database, ie the edit event is not using the Datakey I have setup?
  5. syno

    Search then Edit Datagrid

    It’s when I do a search on my datagrid, then edit the value in the datagrid to update it, that its not recognising the row I want to edit. I have tried adding a primary key field and setting the DataKeyField within my Datagrid control, i.e: <asp:DataGrid ID="dgSearch" runat="server"...
  6. syno

    Search then Edit Datagrid

    Hi My code for the update event is as follows: Public Sub DataGrid_Update(ByVal Source As Object, ByVal E As DataGridCommandEventArgs) Dim objConnection As SqlConnection Dim objCommand As SqlCommand Dim txtCompanyName As TextBox = E.Item.Cells(2).Controls(0)...
  7. syno

    Search then Edit Datagrid

    Hi I am doing a search by CustomerID so I guess my Datakey is CustomerID. But I am having difficulty incorporating the Edit function to recognise the CustomerID field. Sorry I am very new to this and any help would be really appreciated. Thanks
  8. syno

    Search then Edit Datagrid

    Hi Guys I have a textbox and button which performs a simple text search on my database. My datagrid also has simple edit, update and cancel controls where I can update my database from my datagrid with values I insert into a corresponding textbox. However when I try to edit the record that is...
  9. syno

    Binding a datagrid

    Thanks Guys That did it. The BindData method was not loaded incorrectly. I now have a BindData method that calls a post back block. I used the following tutorial at: http://www.dotnetjunkies.com/tutorial/588ce05b-8f08-4d01-83f1-a6daaf153230.dcik Your advise was invaluable!
  10. syno

    Binding a datagrid

    Hi Guys I have an editable datagrid with Edit, Update and Cancel controls shown as links within my datagrid. However when I click on the Edit, Update and Cancel links within my rendered table the table disappears. I know these link controls work because I have a push button that gets a dataset...

Part and Inventory Search

Back
Top