prerak_v_shah 0 Newbie Poster

Hi,

Friends, I have been developing datagrid program in .Net 1.1 and having VB.Net as a programming language.

I have created a datagrid which is bound to a datatable as its datasource. It also shows two columns and both are having comboboxes as its selection control. Data grid is editable and it allows Add, Delete, Modify functionalities.

I have also created event handler to trap any rowchanges (RowChanged event) in the grid. Here I check if there is any manipulation happend, it validates the changes and setting up error message.

Till now it works fine as expected. It shows me a red error icon with tooltip at the rowheader if there is any error editing datagrid values.

My problem is that even if it shows me errors, it allows user to move to any other row of the datagrid which I dont want. If there is error in one row of the datagrid, it should not allow user to jump to any other row.

Can anyone please help me to come out of this problem?

Thanks a lot,
Prerak