Click here to Skip to main content
15,923,164 members
Home / Discussions / C#
   

C#

 
GeneralRe: combo box in datagrid Pin
MoustafaS5-May-05 0:50
MoustafaS5-May-05 0:50 
GeneralRSACryptoServiceProvider Error Pin
Sandeep.Thammadi4-May-05 21:20
sussSandeep.Thammadi4-May-05 21:20 
Generalcheckbox in combobox Pin
sianatia4-May-05 21:15
sianatia4-May-05 21:15 
GeneralRe: checkbox in combobox Pin
MoustafaS5-May-05 0:52
MoustafaS5-May-05 0:52 
GeneralHelp required abt Dynamic dll. Pin
Shashidharreddy4-May-05 20:21
Shashidharreddy4-May-05 20:21 
GeneralRe: Help required abt Dynamic dll. Pin
keith maddox5-May-05 5:47
keith maddox5-May-05 5:47 
GeneralRe: Help required abt Dynamic dll. Pin
Shashidharreddy6-May-05 0:03
Shashidharreddy6-May-05 0:03 
GeneralGet Excel-Word ref Pin
MBGeorge4-May-05 20:06
MBGeorge4-May-05 20:06 
GeneralHelp -- TreeView Pin
Umair Tariq4-May-05 20:05
Umair Tariq4-May-05 20:05 
GeneralRe: Help -- TreeView Pin
S. Senthil Kumar4-May-05 21:36
S. Senthil Kumar4-May-05 21:36 
GeneralOpening mdi child from mdi child Pin
ninja26054-May-05 20:01
ninja26054-May-05 20:01 
GeneralRe: Opening mdi child from mdi child Pin
Dave Kreskowiak5-May-05 4:32
mveDave Kreskowiak5-May-05 4:32 
GeneralRe: Opening mdi child from mdi child Pin
ninja26055-May-05 19:29
ninja26055-May-05 19:29 
GeneralRe: Opening mdi child from mdi child Pin
Dave Kreskowiak6-May-05 2:08
mveDave Kreskowiak6-May-05 2:08 
GeneralRe: Opening mdi child from mdi child Pin
ninja26056-May-05 3:57
ninja26056-May-05 3:57 
Generalsms to mobiles from Web application Pin
din butt4-May-05 19:57
din butt4-May-05 19:57 
GeneralNeed help with translation from VB.Net Pin
royg774-May-05 19:53
royg774-May-05 19:53 
GeneralRe: Need help with translation from VB.Net Pin
Mathew Hall4-May-05 20:27
Mathew Hall4-May-05 20:27 
GeneralRe: Need help with translation from VB.Net Pin
royg774-May-05 22:25
royg774-May-05 22:25 
GeneralRe: Need help with translation from VB.Net Pin
Mathew Hall4-May-05 23:52
Mathew Hall4-May-05 23:52 
GeneralRe: Need help with translation from VB.Net Pin
royg775-May-05 1:02
royg775-May-05 1:02 
QuestionCrystal Report throw and exception?? Pin
MJay4-May-05 18:55
MJay4-May-05 18:55 
AnswerRe: Crystal Report throw and exception?? Pin
MBGeorge4-May-05 19:13
MBGeorge4-May-05 19:13 
GeneralC# ArrayList Pin
Mitchell McCollum4-May-05 18:00
Mitchell McCollum4-May-05 18:00 
GeneralRe: C# ArrayList Pin
Mathew Hall4-May-05 18:38
Mathew Hall4-May-05 18:38 
You can use the ArrayLists Item property (see MSDN[^])

public string getFirstListing()<br />
{<br />
  // check if arrListings is empty<br />
  if (arrListings.Count == 0)<br />
  {<br />
    return null;<br />
  }<br />
<br />
  // get the first item in the list<br />
  Listings list = (Listings) arrListings[0];<br />
  return list.Name;<br />
<br />
  // or the short version<br />
  return ((Listings) arrListings[0]).Name;<br />
}



"I think I speak on behalf of everyone here when I say huh?" - Buffy

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.