Search results for query: *

  1. C

    Multiple connection strings

    I have a winforms application & depending on the user selection regarding SQL authentication there are 2 possible connection strings :- - using (var con = new SqlConnection(String.Format("Data Source={0}; database={1}; Integrated Security=True", Sql_ServerName, Sql_DataBaseName))) - using (var...
  2. C

    Data conversion, manipulation & transfer

    Not sure why this has been moved to the ADO.NET thread as I'm not using ADO ?? Thanks jmcilhinney - it was a mistake in my code example rather than my app. Discovered that I had to format the string first. All working now :)
  3. C

    Passing data between DataTables

    Hi, Not sure why this has been moved to ADO.NET as I'm not using ADO ?? Thanks
  4. C

    Passing data between DataTables

    Ok - here goes...... - User selects to import data (from .csv or .xls) - OpenFileDialog launches & User selects file - File is read into OriginalDT & the column headers are extracted to populate a ComboBox list - The User then selects the appropriate column to import from the ComboBox list...
  5. C

    Data conversion, manipulation & transfer

    Hia all, Hoping you're all having a great festive season !! Quick question to pose :- I've a DataTable that has a single column and houses data in string format (as imported from external files). I'm now moving this data to a secondary DataTable and would like to apply some conversion /...
  6. C

    Passing data between DataTables

    Hi jmcilhinney, Happy festive season to you. Thanks for the reply - I've managed to resolve the questions though by placing all the DataTables into a seperate class & made them public. This has led to additional queries which I'll post shortly. KR
  7. C

    Passing data between DataTables

    Hia, I'm looking to move data between two DataTables (with a twist) & am looking for some guidance...... I have a WinForms application that works as follows :- - Form_A is the main form & has graphing elements on it - Form_A has two DataTables (a RawDT & an AnalysisDT) - Form_A calls...
  8. C

    Question Copy from datatable to new datatable

    Thanks for the reply - dgcolumn1 is indeed a string variable. Turned out to be a simple error - I had part of the code relating to dtRaw in the incorrect scope (sigh).
  9. C

    Question Copy from datatable to new datatable

    Hi all, Hoping for some pointers / advice......... I have a winforms application that imports data from a flat file into a datatable. I need to select certain columns from this import & use there to populate a second datatable, as well as a dataview grid. The following is the code that I am...
  10. C

    Question Excel data import mapped to datagridview columns

    Many thanks jmcilhinney - that worked a treat.
  11. C

    Question Excel data import mapped to datagridview columns

    Hi all, I have an Excel spreadsheet that I am importing into a datagridview in a winforms application. Unfortunately the Excel spreadsheet comes from an external source that I have no control over and they often change the column order, headings, etc. All in all I cannot rely on a specific...
Back
Top Bottom