Hello I have been trying to get when a user selects a Row im tying to get the information from the 'Packet #' to mean something else in the Discription row

ex If the packet # = "103, 1" the Discription should display 'Advanced Sheet'

This is what i have to add items to the list.

                        while ((line = reader.ReadLine()) != null)
                            String[] lineData = line.Split(new char[] { ' ' });

                            //This allows the data to be imputed into the rows that are needed
                            subItemTexts[0] = lineData[0];
                            subItemTexts[1] = lineData[1];
                            subItemTexts[2] = lineData[2];
                            subItemTexts[3] = lineData[3];
                            subItemTexts[4] = lineData[4];
                            //subItemTexts[5] = lineData[5];

                            newItem = new ListViewItem(subItemTexts);


if you can help i would be most happy!
thank you all

Edited by mike_2000_17: Fixed formatting

8 Years
Discussion Span
Last Post by Geekitygeek

Just to clarify, you want to set the text in one row based on the text in another. Something like:

if(subItemTexts[0] = "103, 1")
    subItemsText[5] = "Advanced Sheet"

If not, can you calrify what you're trying to accomplish

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.