| | |
How to prevent moving to any row of the datagrid if there is error while editing.
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2007
Posts: 1
Reputation:
Solved Threads: 0
How to prevent moving to any row of the datagrid if there is error while editing.
0
#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
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
- 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
Views: 1488 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net .net2005 30minutes 2005 2008 access account application arithmetic array arrays basic binary bing button buttons c# center check code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dll dropdownlist excel file-dialog folder ftp google hardcopy highlighting image images inline insert listview login mobile ms net networking output passingparameters peertopeervideostreaming picturebox picturebox1 plugin port print printing problem problemwithinstallation project reports" save savedialog searchbox serial server soap sorting sql string syntax table tcp text textbox timer toolbox trim update updown usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web wpf





