InvalidArgument=Value of '4' is not valid for 'index'. Parameter name: index
here is my code
if (lvnames.Items.Count > 0)
{
for (int x = 0; x < lvScratch.Items.Count; x++)
{
**lvnames.Items[x].SubItems[4].Text = lvnamestemp.Items[x].SubItems[0].Text;**
}
}
else
{
MessageBox.Show("No Record", "Empty", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
my lvnames.Items has 4 colums and my lvnamestemp has 3 columns
i got that error InvalidArgument=Value of '4' on the bold code when i run the code