Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Datagrid goes back to default parent view when dataset refreshes
 

Datagrid goes back to default parent view when dataset refreshes

Hi,

I have a datagrid with childrows. DataGrid is bound to a dataset. Whenever I refresh the dataset using DataAdater.Fill() the datagrid goes back to its default parent view. Sometimes if a user is looking at the child rows in the datagrid and if the dataset refreshes at the same time, the child view closes down and the datagrid goes back to parent view. Is there any way I can stop this from happening so that if a user is viewing child rows in the datagrid and if dataset refreshes then it should'nt go back to the default parent view of the datagrid??

Thanks

bilalso  Friday, April 21, 2006 7:42 PM

Hi,

I am facing the same problem. Did you find any solution. It's urgent or I have make changes in my design.

Rgrds.

Pyramid  Tuesday, May 02, 2006 12:01 PM

No, I did not. I changed it.

Only way would be to remember the childrow the user is looking at and when the refreshing is done then expand that row to display the same child row user was looking at before refresh.

bilalso  Tuesday, May 02, 2006 1:41 PM

You can use google to search for other answers

Custom Search

More Threads

• Text alignment in the DatagridviewColumns
• Sql db and access db data types different???
• hi !!! how we bind the datagridviewcomboboxcolumn to the data source.....
• setting DataGridViewCheckBox based on text file
• link forms
• DataGridView combobox column doesn't select the value from drop down
• Object Databinding Problem
• Display multiple fields in a DataGridView cell
• Can I get all objects in a form and change the object's text for multi-language
• how can i check that the textbox value is string or not?