Create Datatable by selecting columns from textfile. RRS feed

  • Question

  • Hi,

        I want to create a DataTable and add it to existing Dataset in C#. DataTable will be created depending upon columns defind in some external text file.

    in simple words, I'll have a textfile or xml schema file containing defination of DataColumns. In my C# application, I'll write query "Create Table TableName " + Column names and types from file ..

    Reason for above is if need to change datatable then simply update from text file and no need to change in application.  Currently I have defined xml schema for datatables and create table by



    Is there any way to implement such functionality like as I mentioned ?


    Thank you.

    Tuesday, February 8, 2011 7:47 AM