Click here to Skip to main content
15,916,378 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting this Error message....any one know y??? Pin
Eddy Vluggen10-Mar-09 22:40
professionalEddy Vluggen10-Mar-09 22:40 
GeneralRe: Getting this Error message....any one know y??? Pin
S K Y10-Mar-09 22:48
S K Y10-Mar-09 22:48 
QuestionRemoting -how to decide which Delegate i need to Invoke (Private Msgs) Pin
michael@cohen10-Mar-09 20:21
michael@cohen10-Mar-09 20:21 
QuestionHow to store and retrieve multiple values in a generic list? Pin
meeram39510-Mar-09 20:08
meeram39510-Mar-09 20:08 
AnswerRe: How to store and retrieve multiple values in a generic list? Pin
Christian Graus10-Mar-09 20:09
protectorChristian Graus10-Mar-09 20:09 
GeneralRe: How to store and retrieve multiple values in a generic list? Pin
meeram39510-Mar-09 20:13
meeram39510-Mar-09 20:13 
GeneralRe: How to store and retrieve multiple values in a generic list? Pin
Christian Graus10-Mar-09 20:19
protectorChristian Graus10-Mar-09 20:19 
AnswerRe: How to store and retrieve multiple values in a generic list? Pin
jaypatel51211-Mar-09 2:32
jaypatel51211-Mar-09 2:32 
What you can do is create a class named Project

e.g.

public class Project
{
public int projectid;
public string projectname;
public string projecttype;

}
Ok.. Then in the UI layer , in the class of any form . just create a generic list of Project;

i.e.

List<project> prj = new List<project>();

Now you can add the value to this list in any bussiness layer and then pass it to the ui

e.g.

List<project> lst = new List<project>();
foreach(DataRow drow in ds.Tables[0]) //Ds is dataset and your details are in table 0
{
Project temp = new Project();
temp.projectid = Convert.Toint32(drow["ProjectID"]);
temp.projectname = drow["ProjectNAme"].ToString();
...

lst.Add(temp);
}
return lst; //This lst will contain the list of products and you can bind it to any datagrid directly. .
QuestionDOUBT Pin
leela antony10-Mar-09 20:05
leela antony10-Mar-09 20:05 
AnswerRe: DOUBT Pin
Ashfield10-Mar-09 21:56
Ashfield10-Mar-09 21:56 
AnswerRe: DOUBT Pin
Eddy Vluggen10-Mar-09 22:20
professionalEddy Vluggen10-Mar-09 22:20 
AnswerRe: DOUBT Pin
CPallini10-Mar-09 23:11
mveCPallini10-Mar-09 23:11 
QuestionDOUBT Pin
leela antony10-Mar-09 20:04
leela antony10-Mar-09 20:04 
AnswerRe: DOUBT Pin
Nagy Vilmos10-Mar-09 22:30
professionalNagy Vilmos10-Mar-09 22:30 
Questiondoubt Pin
tinajohny10-Mar-09 20:03
tinajohny10-Mar-09 20:03 
Questiondoubt Pin
leela antony10-Mar-09 20:03
leela antony10-Mar-09 20:03 
Questiondoubt Pin
leela antony10-Mar-09 20:00
leela antony10-Mar-09 20:00 
AnswerRe: doubt Pin
Roger Wright10-Mar-09 20:14
professionalRoger Wright10-Mar-09 20:14 
GeneralRe: doubt Pin
Christian Graus10-Mar-09 20:19
protectorChristian Graus10-Mar-09 20:19 
GeneralRe: doubt Pin
Roger Wright10-Mar-09 20:33
professionalRoger Wright10-Mar-09 20:33 
AnswerRe: doubt Pin
0x3c010-Mar-09 20:55
0x3c010-Mar-09 20:55 
Questiondoubt Pin
vinithakizhussery10-Mar-09 19:55
vinithakizhussery10-Mar-09 19:55 
AnswerRe: doubt Pin
Richard Blythe10-Mar-09 20:05
Richard Blythe10-Mar-09 20:05 
AnswerRe: doubt Pin
Christian Graus10-Mar-09 20:09
protectorChristian Graus10-Mar-09 20:09 
AnswerRe: doubt Pin
Roger Wright10-Mar-09 20:10
professionalRoger Wright10-Mar-09 20:10 

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.