Jump to content
Xtreme .Net Talk

brohar

Members
  • Posts

    4
  • Joined

  • Last visited

brohar's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. The form is used to search a database. I could save the query used to retrieve the information but i want the user to see the search criteria in the form and be able to manipulate it if needed. Thanks
  2. I have a search form (windows) with 40+ controls. I would like the user to be able to save the search they entered. Has anyone have an idea about how to do this fairly simply. I was wondering if there was a way to save the forms state/data in xml or text and the use it to repopulate the form. The only ways i can think of doing this is to loop through all the control and save all the data and then repopulate it manually. This would work but is very tedious and sloppy so i was hoping someone knew a better way. Thanks Everyone.
  3. I have a form with a datagrid and when the user double clicks a row i want to open a new form with the datagrid rows values in textboxes in the new form. Ive tried binding the textboxes to the dataset and that seems to work out good except I get the first record in the dataset not the one selected in the previous form. I also tried binding a hidden datagrid to the dataset and then setting the selected row to the one in the previous form but it only selects the row and does not change the textbox binding. So basically is there a way to specify what row in the dataset is selected so the bound textbox will show the desired info? Thanks, Steve
  4. I delete a row in my datagrid and try to update the delete to the database but it is not doing anything. I dont even get an error. Inserts and Updates work fine however. The delete command is set for the adapter and the stored procedure exist. Any Ideas? Here is some code: Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles butUpdateProperty.Click If dsprop.HasChanges = True Then Dim dschange As DataSet dschange = dsprop.GetChanges If Not dschange.HasErrors Then AddNewDal.UpdatePropertyDS(dschange) dschange.Dispose() dsprop.AcceptChanges() MsgBox("Property Record Saved") Else MsgBox("Error with Save") End If End If End Sub 'sub in module Public Sub UpdatePropertyDS(ByVal ds As DataSet) Try AdpProperty.Update(ds) Catch ex As Exception MsgBox(ex.Message.ToString) End Try End Sub
×
×
  • Create New...