DataGrid.Current is Always Invalid

RogerSchlueter-7899 1,801 Reputation points
2026-12-03T16:58:22.43+00:00

I have written a small VB app that Illustrates the issue; I've uploaded the essential files; it should be obvious how to extract the individual files from that concatenation and rebuild the app.

The application just creates a DataGrid then populates it with a single row DataTable. As shown by clicking the button, no matter how one clicks in the DataGrid, CurrentCell.IsValid is ALWAYS False. How can this be fixed?

Developer technologies | VB

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 85,506 Reputation points
    2026-12-03T21:09:23.9533333+00:00

    if you are using window forms, then you should be using DataGridView, if WPF then DataGrid. In neither is cell.IsValid supported. vb6 is no longer supported.

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.