Click here to Skip to main content
16,004,969 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Panel Drag and Drop Pin
Sandeep Akhare5-Aug-08 23:13
Sandeep Akhare5-Aug-08 23:13 
GeneralRe: Panel Drag and Drop Pin
sjs4u5-Aug-08 23:15
sjs4u5-Aug-08 23:15 
Question[Message Deleted] Pin
rahul21nov5-Aug-08 22:37
rahul21nov5-Aug-08 22:37 
AnswerRe: Loading Image does not rotate Pin
Sathesh Sakthivel5-Aug-08 23:12
Sathesh Sakthivel5-Aug-08 23:12 
Questionhow to convert to arraylist to dataset Pin
Shaik Haneef5-Aug-08 22:24
Shaik Haneef5-Aug-08 22:24 
AnswerRe: how to convert to arraylist to dataset Pin
Sandeep Akhare5-Aug-08 22:28
Sandeep Akhare5-Aug-08 22:28 
GeneralRe: how to convert to arraylist to dataset Pin
Shaik Haneef5-Aug-08 22:33
Shaik Haneef5-Aug-08 22:33 
GeneralRe: how to convert to arraylist to dataset Pin
Sandeep Akhare5-Aug-08 23:01
Sandeep Akhare5-Aug-08 23:01 
haneef wrote:
can you convert this into dataset with out taking any loops.


I think you can't as implimentation of DataSet is different than ArrayList DataSet Contains DataTable in which you have Rows these Rows are resposible for storing data not Dataset itself.
So you will have to store the ArraList in these rows
public DataSet ConvertArraylistToDataSet(ArrayList arrayList)
{
dsEntityReturned = new DataSet();
dtEntityReturned = new DataTable();
dsEntityReturned.Tables.Add(dtEntityReturned);

dsEntityReturned.Tables[0].Columns.Add("NAME", System.Type.GetType("System.Object"));

foreach (object obj in arrayList)
{
DataRow rows = dsEntityReturned.Tables[0].NewRow();
rows[0] =obj; // here the error blows up
dsEntityReturned.Tables[0].Rows.Add(rows);
return dsEntityReturned;
}
return null;
}

Thanks and Regards
Sandeep

If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "

Check My Blog

AnswerRe: how to convert to arraylist to dataset Pin
nagendrathecoder5-Aug-08 22:33
nagendrathecoder5-Aug-08 22:33 
GeneralRe: how to convert to arraylist to dataset Pin
Shaik Haneef5-Aug-08 22:35
Shaik Haneef5-Aug-08 22:35 
QuestionStyling TabContainer Pin
Rohde5-Aug-08 22:03
Rohde5-Aug-08 22:03 
QuestionASP.NET Live earth control Pin
Gretna5-Aug-08 21:45
Gretna5-Aug-08 21:45 
QuestionPass 3 Parameters Pin
Agweet5-Aug-08 21:43
Agweet5-Aug-08 21:43 
AnswerRe: Pass 3 Parameters Pin
Bardy855-Aug-08 21:48
Bardy855-Aug-08 21:48 
GeneralRe: Pass 3 Parameters Pin
Agweet5-Aug-08 21:50
Agweet5-Aug-08 21:50 
QuestionASP.Net 1.1 Debugging Issue Pin
pashitech5-Aug-08 21:22
pashitech5-Aug-08 21:22 
AnswerRe: ASP.Net 1.1 Debugging Issue Pin
Sandeep Akhare5-Aug-08 22:26
Sandeep Akhare5-Aug-08 22:26 
QuestionOpen new window using javascript or anyway from class file Pin
Satish - Developer5-Aug-08 21:21
Satish - Developer5-Aug-08 21:21 
AnswerRe: Open new window using javascript or anyway from class file Pin
eyeseetee5-Aug-08 21:31
eyeseetee5-Aug-08 21:31 
Questionusing dll (reply urgent please) Pin
harish.k125-Aug-08 21:21
harish.k125-Aug-08 21:21 
AnswerRe: using dll (reply urgent please) Pin
Bardy855-Aug-08 21:25
Bardy855-Aug-08 21:25 
GeneralRe: using dll (reply urgent please) Pin
harish.k125-Aug-08 23:10
harish.k125-Aug-08 23:10 
GeneralRe: using dll (reply urgent please) Pin
Sathesh Sakthivel5-Aug-08 23:17
Sathesh Sakthivel5-Aug-08 23:17 
GeneralRe: using dll (reply urgent please) Pin
Gayani Devapriya6-Aug-08 1:35
Gayani Devapriya6-Aug-08 1:35 
QuestionDOTNET certification Pin
kuwl_mark5-Aug-08 21:13
kuwl_mark5-Aug-08 21:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.