ListView & Coloumn Managing [Win #C]

  • Thread starter Thread starter MikeY
  • Start date Start date
M

MikeY

Is There a way of managing individual Listview columns when it comes to
Color, Text size, etc.? If so, does anyhow have any helpful suggestions on
how to do this feat? If So, there is a sample of my code below:

private void Create_LV_Headers()

{

//Index Header

ColumnHeader colHead;

colHead = new ColumnHeader();

colHead.Text = "Item Name";

colHead.Width = 135;

this.lvBody.Columns.Add(colHead);

//Price Header

colHead = new ColumnHeader();

colHead.Text = "Price";

colHead.Width = 60;

this.lvBody.Columns.Add(colHead);

}



private void Display_Existing_TableItems()

{

//Add Selected Button Itemn To ListView

lvBody.BeginUpdate();

ListViewItem lvItem = lvBody.Items.Add(myListView_Item_Counter);

lvItem.SubItems.Add(Selected_Item);

lvItem.SubItems.Add(Item_Quantity.ToString());

lvItem.SubItems.Add(DB_Items.GETSET_TABLE_NUMBER.ToString());

lvItem.SubItems.Add(DB_Items.GETSET_TABLE_PRICE.ToString());

this.lvBody.EndUpdate();

}


Thank you all in advance.

MikeY
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top