Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Problems refreshing datagridview

$
0
0

Hi,

I have a datagridview which is bound to an xml dataset. The datagridview has a KeyDown event method which calls another method to delete the selected row from the dataset using linq. The same delete method is called on a context menu item but i get different results can someone please explain why? On the KeyDown event the datagrid deletes the row from the xml dataset and automatically updates the datagrid where as the contextmenu deletes the row from the xml datasource but does not update the datagrid. Does the keyDown event automatically refresh the datagrid and if so how can i force it to do the same from the context menu?


Viewing all articles
Browse latest Browse all 12583

Trending Articles