User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 423,506 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,664 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser: Programming Forums
Views: 886 | Replies: 0
Reply
Join Date: Oct 2007
Posts: 1
Reputation: prerak_v_shah is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
prerak_v_shah prerak_v_shah is offline Offline
Newbie Poster

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

  #1  
Oct 4th, 2007
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
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb VB.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 4:24 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC