Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to have sub-properties in a custom control? Pin
Nick Parker13-Aug-03 5:35
protectorNick Parker13-Aug-03 5:35 
GeneralRe: How to have sub-properties in a custom control? Pin
Meysam Mahfouzi13-Aug-03 17:46
Meysam Mahfouzi13-Aug-03 17:46 
GeneralRe: How to have sub-properties in a custom control? Pin
Nick Parker14-Aug-03 2:08
protectorNick Parker14-Aug-03 2:08 
GeneralRe: How to have sub-properties in a custom control? Pin
Alvaro Mendez13-Aug-03 5:32
Alvaro Mendez13-Aug-03 5:32 
AnswerRe: How to have sub-properties in a custom control? Pin
Nnamdi Onyeyiri13-Aug-03 0:52
Nnamdi Onyeyiri13-Aug-03 0:52 
GeneralRe: How to have sub-properties in a custom control? Pin
Alvaro Mendez13-Aug-03 5:26
Alvaro Mendez13-Aug-03 5:26 
AnswerSolution! Pin
Alvaro Mendez13-Aug-03 5:08
Alvaro Mendez13-Aug-03 5:08 
Generaladding sub items Microsoft example doesnt work Pin
Ista12-Aug-03 11:58
Ista12-Aug-03 11:58 
Hi anyone have a short code snippet of adding a sub item in the detail view, i direly need this

and the below doesnt work


listView1.View = View.Details;
// Allow the user to edit item text.
listView1.LabelEdit = true;
// Allow the user to rearrange columns.
listView1.AllowColumnReorder = true;
// Display check boxes.
listView1.CheckBoxes = true;
// Select the item and subitems when selection is made.
listView1.FullRowSelect = true;
// Display grid lines.
listView1.GridLines = true;
// Sort the items in the list in ascending order.
listView1.Sorting = SortOrder.Ascending;


// Create three items and three sets of subitems for each item.
ListViewItem item1 = new ListViewItem("item1",0);
// Place a check mark next to the item.
item1.Checked = true;
item1.SubItems.Add("1");
item1.SubItems.Add("2");
item1.SubItems.Add("3");
ListViewItem item2 = new ListViewItem("item2",1);
item2.SubItems.Add("4");
item2.SubItems.Add("5");
item2.SubItems.Add("6");
ListViewItem item3 = new ListViewItem("item3",0);
// Place a check mark next to the item.
item3.Checked = true;
item3.SubItems.Add("7");
item3.SubItems.Add("8");
item3.SubItems.Add("9");

// Create columns for the items and subitems.
listView1.Columns.Add("Item Column", 100, HorizontalAlignment.Left);
listView1.Columns.Add("Column 2", 100, HorizontalAlignment.Left);
listView1.Columns.Add("Column 3", 100, HorizontalAlignment.Left);
listView1.Columns.Add("Column 4", 100, HorizontalAlignment.Center);


//Add the items to the ListView.
listView1.Items.AddRange(new ListViewItem[]{item1,item2,item3});


I'm not an expert yet, but I play one at work. Yeah and here too.
GeneralRe: adding sub items Microsoft example doesnt work Pin
Csharp™12-Aug-03 15:08
Csharp™12-Aug-03 15:08 
GeneralRe: adding sub items Microsoft example doesnt work Pin
Ista12-Aug-03 15:45
Ista12-Aug-03 15:45 
Generaldatagrid column widths Pin
mikemilano12-Aug-03 10:57
mikemilano12-Aug-03 10:57 
GeneralRe: datagrid column widths Pin
Ista12-Aug-03 11:56
Ista12-Aug-03 11:56 
GeneralRe: datagrid column widths Pin
mdolby13-Aug-03 5:12
mdolby13-Aug-03 5:12 
GeneralRe: datagrid column widths Pin
Ista13-Aug-03 13:28
Ista13-Aug-03 13:28 
GeneralSetting Environment Variables with C# Pin
Jonathan Guidry12-Aug-03 9:42
Jonathan Guidry12-Aug-03 9:42 
GeneralRe: Setting Environment Variables with C# Pin
Nnamdi Onyeyiri13-Aug-03 0:55
Nnamdi Onyeyiri13-Aug-03 0:55 
GeneralRe: Setting Environment Variables with C# Pin
Alvaro Mendez13-Aug-03 5:50
Alvaro Mendez13-Aug-03 5:50 
GeneralRe: Setting Environment Variables with C# Pin
Jonathan Guidry13-Aug-03 6:54
Jonathan Guidry13-Aug-03 6:54 
GeneralRe: Setting Environment Variables with C# Pin
Alvaro Mendez13-Aug-03 7:37
Alvaro Mendez13-Aug-03 7:37 
GeneralRe: Setting Environment Variables with C# Pin
Ista13-Aug-03 13:29
Ista13-Aug-03 13:29 
GeneralPress Enter In Data Grid & Trigger Button Outside Pin
mikemilano12-Aug-03 9:34
mikemilano12-Aug-03 9:34 
GeneralRe: Press Enter In Data Grid & Trigger Button Outside Pin
Ista12-Aug-03 11:57
Ista12-Aug-03 11:57 
QuestionAccessing xml help in 3rd party lib..?? Pin
vlusardi12-Aug-03 7:23
vlusardi12-Aug-03 7:23 
AnswerRe: Accessing xml help in 3rd party lib..?? Pin
Heath Stewart12-Aug-03 8:25
protectorHeath Stewart12-Aug-03 8:25 
Generaltrigger button click method from code Pin
mikemilano12-Aug-03 6:38
mikemilano12-Aug-03 6:38 

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.