Click here to Skip to main content
15,885,757 members
Home / Discussions / C#
   

C#

 
GeneralRe: converting numbers to date Pin
TheJudeDude3-May-06 9:25
TheJudeDude3-May-06 9:25 
GeneralRe: converting numbers to date Pin
J4amieC3-May-06 22:10
J4amieC3-May-06 22:10 
QuestionCopy DBF file to MDB Pin
Bedevian3-May-06 8:18
Bedevian3-May-06 8:18 
QuestionProblem with Reports Pin
ventomito3-May-06 8:11
ventomito3-May-06 8:11 
AnswerRe: Problem with Reports Pin
ranandbe4-May-06 20:19
ranandbe4-May-06 20:19 
QuestionTotal Physical Memory Pin
rajith_r3-May-06 7:54
rajith_r3-May-06 7:54 
AnswerRe: Total Physical Memory Pin
Ravi Bhavnani3-May-06 8:45
professionalRavi Bhavnani3-May-06 8:45 
QuestionListView Control - Insert Method Pin
xfitr23-May-06 7:36
xfitr23-May-06 7:36 
I am having trouble using the ListView.ListItems.Insert() method. When I create a new listview item, and use the Insert method with an index of let's say 0 to be the first item in the listview, it automatically appends to the end of the listview. I've just about given up. Is there a property I need to set or something? Below is a code snippet to give you an idea. Any help would be appreciated. Many thanks.

(There is an ImageList associated with the ListView control with at least 3 images.)

<pre>
private void Whatever()
{
listView1.Items.Add("One", 0);
listView1.Items.Add("Two", 1);
listView1.Items.Add("Three", 1);

ListViewItem lstvwitm = new ListViewItem("Inserted", 2);
listView1.Items.Insert(0, lstvwwitem);
}
</pre>

Garrett
AnswerRe: ListView Control - Insert Method Pin
Travis D. Mathison3-May-06 8:13
Travis D. Mathison3-May-06 8:13 
GeneralRe: ListView Control - Insert Method Pin
xfitr23-May-06 8:36
xfitr23-May-06 8:36 
GeneralRe: ListView Control - Insert Method Pin
Travis D. Mathison3-May-06 11:54
Travis D. Mathison3-May-06 11:54 
AnswerRe: ListView Control - Insert Method Pin
xfitr24-May-06 2:27
xfitr24-May-06 2:27 
QuestionReally I need Help Pin
zidan9113-May-06 7:33
zidan9113-May-06 7:33 
AnswerRe: Really I need Help Pin
Ed.Poore3-May-06 11:20
Ed.Poore3-May-06 11:20 
AnswerRe: Really I need Help Pin
Ravi Bhavnani3-May-06 13:00
professionalRavi Bhavnani3-May-06 13:00 
QuestionAdding new row in UltraWinGrid in Windows Form Pin
Neel073-May-06 7:16
Neel073-May-06 7:16 
QuestionEvents Pin
Smith#3-May-06 6:15
Smith#3-May-06 6:15 
QuestionHow to update ComboBox/ListBox bound to ArrayList? Pin
therealmccoy3-May-06 6:04
therealmccoy3-May-06 6:04 
AnswerRe: How to update ComboBox/ListBox bound to ArrayList? Pin
Travis D. Mathison3-May-06 8:22
Travis D. Mathison3-May-06 8:22 
GeneralRe: How to update ComboBox/ListBox bound to ArrayList? Pin
therealmccoy3-May-06 11:05
therealmccoy3-May-06 11:05 
QuestionProblems exposing attributes in a DataGridView Pin
Pink Floyd3-May-06 6:01
Pink Floyd3-May-06 6:01 
Questionsending message from tcp socket to web service Pin
pg663-May-06 5:55
pg663-May-06 5:55 
QuestionGeneric problem seeking Generic help Pin
_awatts3-May-06 5:28
_awatts3-May-06 5:28 
AnswerRe: Generic problem seeking Generic help Pin
Guffa3-May-06 6:05
Guffa3-May-06 6:05 
Question.NET Remoting problem Pin
Kasdoffe3-May-06 5:01
Kasdoffe3-May-06 5:01 

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.