Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > newly added row to datagridview not visible
 

newly added row to datagridview not visible

I process infomation typed into a datagridview in the _RowValidating event. So, after the user enters the information and the row loses focus the data is saved to the database. What I cannot figure out is why the newly entered row does not show up in the datagridview. If a user edits a row those values can be seen, but a newly added row does not show in the grid after that row loses focus. Does anyone know why? (Pls forgive if I'm in the wrong forum, I'm very new)

dwdan4th  Tuesday, July 14, 2009 2:15 AM
Have you got sorting turned on and the row is being re-sorted to somewhere else in the grid where you can't see it ?
Is the data actually being saved ?
Yort  Tuesday, July 14, 2009 2:31 AM
hi,

I also observed this sometimes,
what i did is, call the refresh functionality of the datagridview after i process information. I worked for me.

Regards,
Vinil;
VinilV  Tuesday, July 14, 2009 5:06 AM
Yort,
the sorting is not turned on and I've tested it with just a few rows -where I can see the whole grid at once. The data is being saved. I can get it again from the db, but I am trying not to do this. Though that is working for Vinil.
dwdan4th  Tuesday, July 14, 2009 12:34 PM
Hi dwdan4th,

Do you add new row by editing the "NEWROW"(with a star at the row head)? Did you add row directly to the underline datasource? What type of the underline datasource?

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Wednesday, July 15, 2009 3:49 AM
We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post editor window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Monday, July 20, 2009 5:42 AM

You can use google to search for other answers

Custom Search

More Threads

• Scrolling a "DataGridView" in an "OnCellValidating()" handler
• bindinglist for binding the datagrid view in winforms
• DataGridView Binding Problem: Rows are all empty
• Problem with DataGridBoolColumn in the DataGrid
• DataGridViewCheckBoxColumn Check Changed
• GRIDVIEW : Help Required
• How do i add comobox dropdown feature to data grid view ?
• selecting a particular checkbox.
• Working with Data in Datagridview
• DataGridViewComboBoxCell values depending on another DataGridViewComboBoxCell