Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: Casting generic lists Pin
Ed.Poore24-Oct-06 1:16
Ed.Poore24-Oct-06 1:16 
GeneralRe: Casting generic lists Pin
Not Active24-Oct-06 3:07
mentorNot Active24-Oct-06 3:07 
GeneralRe: Casting generic lists Pin
Ed.Poore24-Oct-06 3:47
Ed.Poore24-Oct-06 3:47 
GeneralRe: Casting generic lists Pin
Daniel Grunwald24-Oct-06 5:21
Daniel Grunwald24-Oct-06 5:21 
GeneralRe: Casting generic lists Pin
Ed.Poore24-Oct-06 5:36
Ed.Poore24-Oct-06 5:36 
QuestionNewbie: Porblem with ListView... Pin
Phillip Hodges24-Oct-06 0:10
Phillip Hodges24-Oct-06 0:10 
AnswerRe: Newbie: Porblem with ListView... Pin
baerten24-Oct-06 2:34
baerten24-Oct-06 2:34 
GeneralRe: Newbie: Porblem with ListView... Pin
Phillip Hodges24-Oct-06 22:03
Phillip Hodges24-Oct-06 22:03 
Thanks for the reply...

I can insert the item. It is just not being inserted where I asked it to be...

Here is the code:

// Find location of original item in listview<br />
                    ListViewItem temp = new ListViewItem();<br />
                    temp = listView_main.FindItemWithText(item_text, true, 0);<br />
                    int location = temp.Index;<br />
<br />
                    // Create listview item<br />
                    ListViewItem lvItem = new ListViewItem(item_text, icon);<br />
                    lvItem.SubItems.Add("Name:" + name + "(" + aka + ")");<br />
                    lvItem.SubItems.Add("Data:" + data);<br />
                    lvItem.ToolTipText = item.ToString();<br />
                    lvItem.Group = listView_main.Groups[0];<br />
<br />
                    // Remove old item in listview<br />
                    listView_main.Items.RemoveAt(location);<br />
<br />
                    // Add new item to listview<br />
                    listView_main.Items.Insert(location, lvItem);


Hope that helps...

Phil

"Rules are for the obedience of fools and the guidance of wise men"

GeneralRe: Newbie: Porblem with ListView... Pin
baerten25-Oct-06 0:07
baerten25-Oct-06 0:07 
QuestionDate Of Birth Pin
bhanu1234523-Oct-06 23:33
bhanu1234523-Oct-06 23:33 
AnswerRe: Date Of Birth Pin
Jon Hulatt23-Oct-06 23:48
Jon Hulatt23-Oct-06 23:48 
AnswerRe: Date Of Birth Pin
V.24-Oct-06 0:43
professionalV.24-Oct-06 0:43 
AnswerRe: Date Of Birth Pin
Ed.Poore24-Oct-06 1:02
Ed.Poore24-Oct-06 1:02 
AnswerRe: Date Of Birth Pin
Guffa24-Oct-06 1:02
Guffa24-Oct-06 1:02 
AnswerRe: Date Of Birth Pin
Drew McGhie25-Oct-06 11:57
Drew McGhie25-Oct-06 11:57 
QuestionButton with Transparancy Pin
Jon Hulatt23-Oct-06 23:32
Jon Hulatt23-Oct-06 23:32 
AnswerRe: Button with Transparancy Pin
Dave Kreskowiak24-Oct-06 5:31
mveDave Kreskowiak24-Oct-06 5:31 
QuestionSql Server Express Edition Configuration with C# Pin
fahiemulleh23-Oct-06 23:25
fahiemulleh23-Oct-06 23:25 
AnswerRe: Sql Server Express Edition Configuration with C# Pin
fahiemulleh24-Oct-06 8:30
fahiemulleh24-Oct-06 8:30 
QuestionPlease help. MessageBox.Show(this, "hello") pops up behind my mainform Pin
bradsnobar23-Oct-06 21:07
bradsnobar23-Oct-06 21:07 
AnswerRe: Please help. MessageBox.Show(this, "hello") pops up behind my mainform Pin
Martin#23-Oct-06 21:26
Martin#23-Oct-06 21:26 
GeneralRe: Please help. MessageBox.Show(this, "hello") pops up behind my mainform Pin
bradsnobar24-Oct-06 6:41
bradsnobar24-Oct-06 6:41 
AnswerRe: Please help. MessageBox.Show(this, "hello") pops up behind my mainform Pin
V.23-Oct-06 21:26
professionalV.23-Oct-06 21:26 
GeneralRe: Please help. MessageBox.Show(this, "hello") pops up behind my mainform Pin
bradsnobar24-Oct-06 6:42
bradsnobar24-Oct-06 6:42 
QuestionHow to invoke an event using reflection? Pin
Super Lloyd23-Oct-06 20:56
Super Lloyd23-Oct-06 20:56 

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.