Click here to Skip to main content
15,892,537 members
Home / Discussions / C#
   

C#

 
Questionunicode Pin
VyTrx26-Dec-08 8:33
VyTrx26-Dec-08 8:33 
AnswerRe: unicode Pin
Christian Graus26-Dec-08 12:10
protectorChristian Graus26-Dec-08 12:10 
QuestionBinding data to specific rows Pin
kensai26-Dec-08 7:46
kensai26-Dec-08 7:46 
QuestionCustom Coloumn Headers? [modified] Pin
cobalt-rose26-Dec-08 5:42
cobalt-rose26-Dec-08 5:42 
AnswerRe: Custom Coloumn Headers? Pin
Wendelius26-Dec-08 7:16
mentorWendelius26-Dec-08 7:16 
AnswerRe: Custom Coloumn Headers? Pin
Lev Danielyan26-Dec-08 7:16
Lev Danielyan26-Dec-08 7:16 
GeneralRe: Custom Coloumn Headers? Pin
cobalt-rose27-Dec-08 4:53
cobalt-rose27-Dec-08 4:53 
GeneralRe: Custom Coloumn Headers? Pin
Lev Danielyan27-Dec-08 6:00
Lev Danielyan27-Dec-08 6:00 
The first question is the listview empty when the user clicks the Clients button?
You should, probably, first clear the listview items and columns, then add new columns for the data you are loading.

In the data load code you are iterating through the rows and pushing all the columns of the reader into the first column of the listview.

Here is an example of populating a listview with several columns and data.


listView1.View = View.Details;

// add first column and set the header text
ColumnHeader col1 = new ColumnHeader();
col1.Text = "col1";
listView1.Columns.Add(col1);

// add first column and set the header text
ColumnHeader col2 = new ColumnHeader();
col2.Text = "col2";
listView1.Columns.Add(col2);
            
// adds an item to the listview and sets its text (in this case the text of the
// item is the data in the first column, the rest of the columns' data is being
// set using SubItems)
ListViewItem item = listView1.Items.Add("Hello");
item.SubItems.Add("world");


I'm sure you'll figure out the rest by yourself.
BTW, check out this link[^]

Regards,
Lev

GeneralRe: Custom Coloumn Headers? Pin
cobalt-rose30-Dec-08 12:11
cobalt-rose30-Dec-08 12:11 
GeneralRe: Custom Coloumn Headers? Pin
Lev Danielyan30-Dec-08 20:39
Lev Danielyan30-Dec-08 20:39 
QuestionWeb Browser.How to open new window in existent opened browser. Pin
aleXXXka26-Dec-08 4:35
aleXXXka26-Dec-08 4:35 
AnswerRe: Web Browser.How to open new window in existent opened browser. Pin
Aman Bhullar26-Dec-08 5:47
Aman Bhullar26-Dec-08 5:47 
AnswerRe: Web Browser.How to open new window in existent opened browser. Pin
Lev Danielyan26-Dec-08 7:20
Lev Danielyan26-Dec-08 7:20 
GeneralRe: Web Browser.How to open new window in existent opened browser. Pin
aleXXXka27-Dec-08 1:13
aleXXXka27-Dec-08 1:13 
QuestionmenuItem with Shortcut and Icon Pin
mirko8626-Dec-08 4:23
mirko8626-Dec-08 4:23 
GeneralRe: menuItem with Shortcut and Icon Pin
Luc Pattyn26-Dec-08 4:27
sitebuilderLuc Pattyn26-Dec-08 4:27 
GeneralRe: menuItem with Shortcut and Icon Pin
mirko8626-Dec-08 4:30
mirko8626-Dec-08 4:30 
GeneralRe: menuItem with Shortcut and Icon Pin
Luc Pattyn26-Dec-08 4:39
sitebuilderLuc Pattyn26-Dec-08 4:39 
GeneralRe: menuItem with Shortcut and Icon [modified] Pin
mirko8626-Dec-08 4:47
mirko8626-Dec-08 4:47 
GeneralRe: menuItem with Shortcut and Icon Pin
mirko8626-Dec-08 5:45
mirko8626-Dec-08 5:45 
QuestionHow to access a comboBox in dataGridView? Pin
Admin88726-Dec-08 2:25
Admin88726-Dec-08 2:25 
AnswerRe: How to access a comboBox in dataGridView? Pin
Wendelius26-Dec-08 7:26
mentorWendelius26-Dec-08 7:26 
GeneralRe: How to access a comboBox in dataGridView? Pin
Admin88726-Dec-08 21:03
Admin88726-Dec-08 21:03 
GeneralRe: How to access a comboBox in dataGridView? Pin
Wendelius26-Dec-08 22:09
mentorWendelius26-Dec-08 22:09 
QuestionHow to use a self-made dll in a C# project from a different location. Pin
Joshua12332126-Dec-08 0:14
Joshua12332126-Dec-08 0:14 

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.