2
Answers

Datagridview bound to bindingsource with .datasource

Photo of Rambo Vincent

Rambo Vincent

9y
423
1
I have a datagridview bound to bindingsource which is pulling from dataset. When a value changes by user at runtime in the datagridview cells the changes are not saved to bindingsource. I tried calling binsingsource.endedit and datagrid.endedit but neither save the data without clicking outside of the grid and changing a value elsewhere (leaving grid focus) .... I'm at wits end with datagridview and bindingsources not saving my values. I tried even using dirtycell and cell value changed events with endedit but the value won't save to dataset or binsingsource unless focus leaves grid! Whyyy

Answers (2)

0
Photo of Mehul Prajapati
NA 65 1.6k 7y
<body id="bodyMain" onload="window.print();">
 
This is already working on a website. I am scraping data from html but print preview is disturbing to scrape data.
0
Photo of Laxmidhar Sahoo
NA 2.3k 1.4k 7y
sir u mean printing the material without dialogbox ?