Skip to content

How to add data for particular cell in listview

Rajashekar K

Rajashekar K

Asked Apr 21, 2018, 11:01 AM EDT1 answer
Share
LinkedInX
I filled below listview when click on Show button after that i have to fill Name's example : Name should be fill in list view for selected Day .if i select Sun(checkbox) and Name from droppdown then all sunday's days fill with selected Name from Dropdown.
 
thanks. in advance , If any one have doubts please let me know
 
 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Rajashekar K
    +1
    yeah i got that ...... 
     
     
    Code
    foreach (ListViewItem lvitm in lvw.Items)
                        {
                            if (lvitm.SubItems[1].Text.ToUpper() == "MONDAY")
                               {
                                      lvitm.SubItems[2].Text = cmbName.Text;
                                      lvitm.SubItems[4].Text = cmbName.SelectedValue.ToString();
                               }
                        }
    +1