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 wOOdy-Soft 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: *

  1. goneWildCoder

    Updating a single row to a database

    I have a textbox driven windows form in C# whose values corresponding to rows of a dataset being filled from a database table. When the user clicks the Insert button, I want to add a new row with values entered by the user. After the user has finished entering a new record, I want to update the...
  2. goneWildCoder

    Adding new row to dataset

    I have a textbox driven windows form created in C# and linked to a dataset. On the form, I have an add button that should allow the user to add a new record. How do I create a new record in the dataset which would be updated with values from the user? I tried the following: /// <summary> ///...
  3. goneWildCoder

    Database Update error

    Hi all, I am getting the following error when trying to update database table: "Error: Update unable to find TableMapping['Table'] or DataTable 'Table'. Here is the code snippet that is throwing the error (specifically, the Update() command ) if (upDateFlag) { //update SqlConnection...
  4. goneWildCoder

    Datagrid HeaderText alignment

    How can I set the alignment of the headertext separately from the alignment of data ?
  5. goneWildCoder

    Datagrid event Question

    Hi all, I have 3 columns being read and displayed in a dataGrid. I want to trap the event when the 2nd column comes to focus. How do I do this? Thanks
  6. goneWildCoder

    Error when printing Report

    Hi all, I am getting this error when I am trying to print my windows form: "Unable to find the report in the manifest resources. Please build the project and try again." My report used to print fine before.Can anybody please provide me information on this error or point me where I can find...
  7. goneWildCoder

    Directly printing a Crystal Report

    I have a print button on my form and I want to directly print a report created in Crystal Reports when the user clicks this print button. Can this be done? How??
  8. goneWildCoder

    Database error messages

    Is there a way to capture error messages being displayed due to constraints enforced at the table-level which are not taken care of in code ? I have a columnchanging method which does not get fired when a cell value is not changed (ie remains null). I cannot capture this event in code and I was...
  9. goneWildCoder

    DataSet question

    How do I get the value of a cell in a datagrid when the user goes to the next cell? I have a ColumnChanging event but it would not be fired when the value of the cell is not changed. I want to handle exactly this case !! Please help.
  10. goneWildCoder

    ColumnChanging event not firing in DataGrid

    Hi all, I have a ColumnChanging event attached to a dataset to perform validations. For some reason unknown to me, the event does not get fired when the user presses the 'tab' key with a null cell. I am trying to make sure that no cell is null. When no value is entered in a cell, and the...
  11. goneWildCoder

    Problems with Dataset

    I am having some problems figuring out the following: 1) Updating database with changes to dataset on Form Closing Here is my form closing method: private void DivFrmClosing(object sender, System.ComponentModel.CancelEventArgs e) { int i; if (dataSet11.HasChanges()) i = dbUpdate(); //...
  12. goneWildCoder

    Database update on formclosing

    I want to ensure that the changes made to a dataset are updated to the table when the form is closed so that any uncommitted changes are taken care of. Here is my form closing event method --> private void DivFrmClosing(object sender, System.ComponentModel.CancelEventArgs e) { DataSet...
  13. goneWildCoder

    Setting column restrictions in a dataset

    Hi all, I have a dataset and I want to ensure that the user enters 2 characters for the first column. How do I do this? I used MaxLength --> dataSet11.Division.Div_CodeColumn.MaxLength = 2; but this allows input of characters at most 2 characters in length ie it allows input that is less...

Part and Inventory Search

Back
Top