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

C#

 
AnswerRe: can we have an arraylist as a member in C# Pin
Christian Graus31-Oct-06 1:28
protectorChristian Graus31-Oct-06 1:28 
GeneralRe: can we have an arraylist as a member in C# Pin
kalaveer31-Oct-06 1:47
kalaveer31-Oct-06 1:47 
GeneralRe: can we have an arraylist as a member in C# Pin
Guffa31-Oct-06 6:44
Guffa31-Oct-06 6:44 
AnswerRe: can we have an arraylist as a member in C# Pin
Elina Blank31-Oct-06 1:47
sitebuilderElina Blank31-Oct-06 1:47 
GeneralRe: can we have an arraylist as a member in C# Pin
kalaveer31-Oct-06 2:08
kalaveer31-Oct-06 2:08 
GeneralRe: can we have an arraylist as a member in C# Pin
Christian Graus31-Oct-06 2:16
protectorChristian Graus31-Oct-06 2:16 
GeneralRe: can we have an arraylist as a member in C# Pin
Elina Blank31-Oct-06 2:22
sitebuilderElina Blank31-Oct-06 2:22 
Questionlistview displaymember prpperty problem (Pls Help) Pin
vipinpaliwal198031-Oct-06 1:02
vipinpaliwal198031-Oct-06 1:02 
ListBox DataSource DisplayMember Property
Problems in C#

I have a (single select) listbox with data and
when I click on the list I can't get the right
text selected.

My listbox is setup using the DataSource property.
I set my ValueMember and DisplayMember
listBox1.ValueMember = "TypeID";
listBox1.DisplayMember = "Name";

I am able to get the "TypeID" (ValueMember) when I click on
the items.
I do that like this...
int intTest;
intTest = System.Int32.Parse(listBox1.SelectedValue.ToString ());

But I can't get the text (DisplayMember).
I have used these two ways, but...
string strDispMem;
strDispMem = listBox1.Items[index].ToString();
// the above returns... "System.Data.DataRowView"

or
strDispMem = listBox1.Text;
// The above repeats first selection the user clicks on.


Any ideas???

vipin Paliwal
AnswerRe: listview displaymember prpperty problem (Pls Help) Pin
Christian Graus31-Oct-06 1:23
protectorChristian Graus31-Oct-06 1:23 
GeneralRe: listview displaymember prpperty problem (Pls Help) Pin
vipinpaliwal198031-Oct-06 1:28
vipinpaliwal198031-Oct-06 1:28 
AnswerRe: listview displaymember prpperty problem (Pls Help) [modified] Pin
rah_sin31-Oct-06 1:29
professionalrah_sin31-Oct-06 1:29 
QuestionValidating event Pin
midhat30-Oct-06 23:58
midhat30-Oct-06 23:58 
AnswerRe: Validating event Pin
Smon the Vidd31-Oct-06 2:11
Smon the Vidd31-Oct-06 2:11 
GeneralRe: Validating event Pin
midhat31-Oct-06 2:34
midhat31-Oct-06 2:34 
QuestionSystem events Pin
softgrid30-Oct-06 23:28
softgrid30-Oct-06 23:28 
AnswerRe: System events Pin
luckykhalid31-Oct-06 1:35
luckykhalid31-Oct-06 1:35 
QuestionMultiple Operations on Bulk Dataset Pin
meeram39530-Oct-06 22:56
meeram39530-Oct-06 22:56 
AnswerRe: Multiple Operations on Bulk Dataset Pin
rah_sin30-Oct-06 23:54
professionalrah_sin30-Oct-06 23:54 
Questiona question about Report Service Pin
myicewater30-Oct-06 22:08
myicewater30-Oct-06 22:08 
AnswerRe: a question about Report Service Pin
luckykhalid31-Oct-06 2:03
luckykhalid31-Oct-06 2:03 
QuestionI am myicewater make a example Pin
myicewater31-Oct-06 14:53
myicewater31-Oct-06 14:53 
QuestionHOW TO TRANSFER DATA BY MODEM? Pin
killam30-Oct-06 20:25
killam30-Oct-06 20:25 
AnswerRe: HOW TO TRANSFER DATA BY MODEM? Pin
luckykhalid31-Oct-06 1:39
luckykhalid31-Oct-06 1:39 
GeneralRe: HOW TO TRANSFER DATA BY MODEM? Pin
killam1-Nov-06 16:27
killam1-Nov-06 16:27 
AnswerRe: HOW TO TRANSFER DATA BY MODEM? Pin
mertkan657-Nov-06 1:09
mertkan657-Nov-06 1:09 

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.