Hi,
You can change the bindingNavigatorPositionItem.Text property when there is no selection.
private void allowNullDataGridView_SelectionChanged(object sender, EventArgs e)
{
if (allowNullDataGridView.SelectedCells.Count == 0)
{
bindingNavigatorPositionItem.Text = "-1";
}
}
Best regards,
Ling Wang
Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.