hi there, i have a datagridview and i am validating the datagridview cell in the cell validating event, but when i type the data and prss tab the error message comes and the next cell is being selected.
my code is

dgvSubContractor.Rows[e.RowIndex].Cells[e.ColumnIndex].Selected = true;

why does it go to the next cell in the datagrid view??


thankx

hey does anybody knows the answer for this???

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.