944,205 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 1870
  • VB.NET RSS
Oct 4th, 2007
0

How to prevent moving to any row of the datagrid if there is error while editing.

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
prerak_v_shah is offline Offline
1 posts
since Oct 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Time - out problem
Next Thread in VB.NET Forum Timeline: Including a .BMP file in an installation





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC