•
•
•
•
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
![]() |
•
•
Join Date: Oct 2007
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb VB.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- How to delete a particular row from a datagrid..? (VB.NET)
- How to catch Datagrid error (C#)
- Datagrid - no value at index ### error when scroll and sort (VB.NET)
- Rundll error loading sdkzh.dll (Viruses, Spyware and other Nasties)
- another one...selecing rows in datagrid and sorting with column headers (VB.NET)
- Displaying datagrid on second form (VB.NET)
- Deleting a Row From A DataGrid (VB.NET)
- refresh datagrid causes error if oper scrolled off right side of grid (VB.NET)
Other Threads in the VB.NET Forum
- Previous Thread: Time - out problem
- Next Thread: Including a .BMP file in an installation


Linear Mode