Click here to Skip to main content
15,891,746 members
Home / Discussions / C#
   

C#

 
QuestionCopy Data from Server to local machine Pin
kyi kyi13-Apr-10 17:58
kyi kyi13-Apr-10 17:58 
AnswerRe: Copy Data from Server to local machine Pin
Not Active13-Apr-10 18:18
mentorNot Active13-Apr-10 18:18 
GeneralRe: Copy Data from Server to local machine Pin
kyi kyi13-Apr-10 18:26
kyi kyi13-Apr-10 18:26 
AnswerRe: Copy Data from Server to local machine Pin
yu-jian15-Apr-10 6:34
yu-jian15-Apr-10 6:34 
GeneralRe: Copy Data from Server to local machine Pin
kyi kyi15-Apr-10 14:45
kyi kyi15-Apr-10 14:45 
Questionhow to display two column value in combobox DisplayMember Pin
crisjala13-Apr-10 17:02
crisjala13-Apr-10 17:02 
AnswerRe: how to display two column value in combobox DisplayMember Pin
Programm3r13-Apr-10 20:26
Programm3r13-Apr-10 20:26 
AnswerRe: how to display two column value in combobox DisplayMember Pin
nagendrathecoder13-Apr-10 21:30
nagendrathecoder13-Apr-10 21:30 
Its quite simple actually :

//Create a DataTable for binding to combobox
DataTable dt = new DataTable();
dt.Columns.Add("ID");
dt.Columns.Add("Name");

//Read values from dbase and fill it in datatable
//I am taking DataReader here

while(reader.Read())
{
DataRow dr = dt.NewRow();
dr["ID"] = reader.GetValue(0);
dr["Name"] = reader.GetValue(0) + reader.GetValue(1);
dt.Rows.Add(dr);
}

combobox.DataSource = dt;
combobox.DataBind();


Hope this helps you. Smile | :)
QuestionListView in smart device application Pin
Tunisien8613-Apr-10 11:42
Tunisien8613-Apr-10 11:42 
AnswerRe: ListView in smart device application Pin
William Winner13-Apr-10 13:22
William Winner13-Apr-10 13:22 
GeneralRe: ListView in smart device application Pin
Tunisien8613-Apr-10 13:46
Tunisien8613-Apr-10 13:46 
GeneralRe: ListView in smart device application Pin
William Winner14-Apr-10 6:31
William Winner14-Apr-10 6:31 
AnswerRe: ListView in smart device application Pin
arun_pk13-Apr-10 18:53
arun_pk13-Apr-10 18:53 
GeneralRe: ListView in smart device application Pin
Tunisien8613-Apr-10 23:22
Tunisien8613-Apr-10 23:22 
QuestionSmart device authentification problem Pin
Tunisien8613-Apr-10 10:57
Tunisien8613-Apr-10 10:57 
AnswerRe: Smart device authentification problem Pin
Luc Pattyn13-Apr-10 11:04
sitebuilderLuc Pattyn13-Apr-10 11:04 
GeneralRe: Smart device authentification problem Pin
Tunisien8613-Apr-10 11:09
Tunisien8613-Apr-10 11:09 
GeneralRe: Smart device authentification problem Pin
Luc Pattyn13-Apr-10 11:17
sitebuilderLuc Pattyn13-Apr-10 11:17 
GeneralRe: Smart device authentification problem Pin
Tunisien8613-Apr-10 11:23
Tunisien8613-Apr-10 11:23 
GeneralRe: Smart device authentification problem Pin
Luc Pattyn13-Apr-10 11:35
sitebuilderLuc Pattyn13-Apr-10 11:35 
GeneralRe: Smart device authentification problem Pin
Tunisien8613-Apr-10 11:47
Tunisien8613-Apr-10 11:47 
AnswerRe: Smart device authentification problem Pin
William Winner13-Apr-10 13:31
William Winner13-Apr-10 13:31 
GeneralRe: Smart device authentification problem Pin
Tunisien8614-Apr-10 2:32
Tunisien8614-Apr-10 2:32 
GeneralRe: Smart device authentification problem Pin
William Winner14-Apr-10 6:56
William Winner14-Apr-10 6:56 
AnswerRe: Smart device authentification problem Pin
William Winner14-Apr-10 7:12
William Winner14-Apr-10 7:12 

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.