Click here to Skip to main content
15,889,808 members
Home / Discussions / C#
   

C#

 
QuestionHow to fill Datagridview faster Pin
Kshitij Patel18-Apr-07 4:37
Kshitij Patel18-Apr-07 4:37 
AnswerRe: How to fill Datagridview faster Pin
MoustafaS18-Apr-07 4:48
MoustafaS18-Apr-07 4:48 
QuestionC# GUI display option Pin
atramard18-Apr-07 4:28
atramard18-Apr-07 4:28 
AnswerRe: C# GUI display option Pin
Pualee18-Apr-07 4:44
Pualee18-Apr-07 4:44 
GeneralRe: C# GUI display option Pin
atramard18-Apr-07 5:07
atramard18-Apr-07 5:07 
GeneralRe: C# GUI display option Pin
Dave Kreskowiak18-Apr-07 7:02
mveDave Kreskowiak18-Apr-07 7:02 
AnswerRe: C# GUI display option Pin
atramard18-Apr-07 20:09
atramard18-Apr-07 20:09 
QuestionDataSet.WriteXML Issue Pin
Pualee18-Apr-07 4:01
Pualee18-Apr-07 4:01 
QuestionC# code highlight as in Visual Studio Pin
Patrick Klug18-Apr-07 2:31
Patrick Klug18-Apr-07 2:31 
AnswerRe: C# code highlight as in Visual Studio Pin
Ed.Poore18-Apr-07 7:22
Ed.Poore18-Apr-07 7:22 
Questiondisplaying data in more than one textbox C# Pin
Deques18-Apr-07 1:56
Deques18-Apr-07 1:56 
AnswerRe: displaying data in more than one textbox C# Pin
sujithkumarsl18-Apr-07 2:05
sujithkumarsl18-Apr-07 2:05 
AnswerRe: displaying data in more than one textbox C# Pin
J4amieC18-Apr-07 2:09
J4amieC18-Apr-07 2:09 
GeneralRe: displaying data in more than one textbox C# Pin
Deques18-Apr-07 2:25
Deques18-Apr-07 2:25 
QuestionSelect Item after it has moved up or down the list. Pin
kripzz18-Apr-07 1:42
kripzz18-Apr-07 1:42 
Here is my code to move list items down the list.

<br />
                if (!(listView1.SelectedIndices.Count == 0))<br />
                    if (!(listView1.SelectedIndices.Count > 1))<br />
                    {<br />
                        if (listView1.SelectedItems[listView1.SelectedIndices.Count - 1].Index != listView1.Items[listView1.Items.Count - 1].Index)<br />
                        {<br />
                            int current = listView1.SelectedItems[0].Index;<br />
                            ListViewItem lvi = new ListViewItem();<br />
                            lvi = (ListViewItem)listView1.Items[current];<br />
                            listView1.Items[current] = (ListViewItem)listView1.Items[current + 1].Clone();<br />
                            listView1.Items[current + 1] = lvi;<br />
                            listView1.Items[current + 1].Selected = true;<br />
                        }<br />
                    }<br />


If there are more then 4 items in the list it will move down the list no problem but "listView1.Items[current + 1].Selected = true;" will not work, it will select the wrong item after (appears to be listview1.Items[current + 3] thats being selected.

What is causing this and how do i fix it?
QuestionVirtual Function in C#.Net Pin
meeram39518-Apr-07 1:19
meeram39518-Apr-07 1:19 
AnswerRe: Virtual Function in C#.Net Pin
sujithkumarsl18-Apr-07 1:41
sujithkumarsl18-Apr-07 1:41 
AnswerRe: Virtual Function in C#.Net Pin
Levnsn18-Apr-07 1:43
Levnsn18-Apr-07 1:43 
GeneralRe: Virtual Function in C#.Net Pin
meeram39518-Apr-07 2:05
meeram39518-Apr-07 2:05 
AnswerRe: Virtual Function in C#.Net Pin
J4amieC18-Apr-07 2:11
J4amieC18-Apr-07 2:11 
QuestionHow can i remove "plus" from TreeView node? Pin
Levnsn18-Apr-07 0:48
Levnsn18-Apr-07 0:48 
AnswerRe: How can i remove "plus" from TreeView node? Pin
Svett18-Apr-07 1:05
Svett18-Apr-07 1:05 
GeneralRe: How can i remove &quot;plus&quot; from TreeView node? Pin
Levnsn18-Apr-07 1:23
Levnsn18-Apr-07 1:23 
AnswerRe: How can i remove "plus" from TreeView node? Pin
Abisodun18-Apr-07 1:41
Abisodun18-Apr-07 1:41 
GeneralRe: How can i remove "plus" from TreeView node? Pin
Levnsn18-Apr-07 4:33
Levnsn18-Apr-07 4:33 

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.