'Listbox convert to datagriview select next item

Hi i have i code in listbox that can select next item.

I am having issue to convert it to Datagridview.

if(listBox.SelectedIndex < listBox.Items.Count -1)
{
ListBox.SelectedIndex = listBox.SelectedIndex +1;
}

Hope you can help me to convert it into datagridview selection.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source