Skip to content

Convertion of Data Source in to a Particular Data Types

Rajeev

Asked Nov 30, 2006, 12:03 AM EST2 answers
Share
LinkedInX
Hi, A datasource can be of any datatypes(Array,arraylist,dataset,dataTable etc). I want to know how can I convert all datasources in to a particular dataTypes, so that its easy for me to use a particular coding??

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    i am not clear about what u said , can u make it clear
    0
  • 0
    Hi, Sorry that I was not clear in my last post. The thing is I am making a dataBound custom server control. For this, I am taking an object type DataSource property. I need values from dataSouce which will be provided by user. But as user can choose any dataSource(arrays,arraylist,dataTable,dataSet,dataView etc.),So I want to convert all datasource in to a particular type e.g. dataSet. If that will happen then my code will be simpler.I need to write code only for dataSet. Can any one suggest the idea. I think, I should convert dataSources in to IEnumerable type and there after I can get values.But I don't know how to do that?
    0