Click here to Skip to main content
15,900,973 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionProblem in button (.Net 2008, Framework 3.5). Pin
priyamtheone13-Nov-10 2:37
priyamtheone13-Nov-10 2:37 
AnswerRe: Problem in button (.Net 2008, Framework 3.5). Pin
Dr.Walt Fair, PE13-Nov-10 10:45
professionalDr.Walt Fair, PE13-Nov-10 10:45 
AnswerRe: Problem in button (.Net 2008, Framework 3.5). Pin
Eddy Vluggen13-Nov-10 11:26
professionalEddy Vluggen13-Nov-10 11:26 
AnswerRe: Problem in button (.Net 2008, Framework 3.5). Pin
priyamtheone16-Nov-10 3:17
priyamtheone16-Nov-10 3:17 
GeneralRe: Problem in button (.Net 2008, Framework 3.5). Pin
Eddy Vluggen16-Nov-10 6:21
professionalEddy Vluggen16-Nov-10 6:21 
GeneralRe: Problem in button (.Net 2008, Framework 3.5). Pin
Ravi Bhavnani9-Dec-10 19:06
professionalRavi Bhavnani9-Dec-10 19:06 
GeneralRe: Problem in button (.Net 2008, Framework 3.5). Pin
RaviRanjanKr18-Dec-10 20:59
professionalRaviRanjanKr18-Dec-10 20:59 
QuestionProblem in ToolStripButton (.Net 2008, Framework 3.5). Pin
priyamtheone12-Nov-10 2:38
priyamtheone12-Nov-10 2:38 
Hi,
I have an editable datagridview that's been databound with dataadapter
and datatable, and a normal button on a form. When i edit the dgv's
cells and click the save button it fires the
datagridview_cellvalidating event and if the cell validation is correct
it updates and saves the current record to the datasource. Also, before
save it commits change in any cell under editing.
But when I use a toolstripbutton to do the same work, though it saves
the dgv records but doesn't update the current change i.e. it saves the
old records that are being fetched when the dgv was populated first
during form load. Also, clicking the toolstripbutton doesn't fire
datagridview_cellvalidating, datagridview_rowvalidating etc events.
What it seems to be is it's not commiting the change in any cell under
editing. Example-

Dgv While load:

CustomerID Customer Inactive
________________________________________
C01 Max Yes
C02 John No
C03 Alex Yes



Dgv while edit but before clicking toolstrip save button:

CustomerID Customer Inactive
________________________________________
C01 Max Yes
C02 Tim Yes
C03 Alex Yes



Dgv after clicking the toolstrip save button:

CustomerID Customer Inactive
________________________________________
C01 Max Yes
C02 John No
C03 Alex Yes

Why isn't it happening and how can I make it work? Please Help. Please
also let me know how can I fire datagridview_cellvalidating,
datagridview_rowvalidating and other events; and commit cell value
change by clicking toolstripbutton. Regards.
AnswerRe: Problem in ToolStripButton (.Net 2008, Framework 3.5). Pin
musefan12-Nov-10 6:35
musefan12-Nov-10 6:35 
GeneralRe: Problem in ToolStripButton (.Net 2008, Framework 3.5). Pin
priyamtheone13-Nov-10 3:47
priyamtheone13-Nov-10 3:47 
GeneralRe: Problem in ToolStripButton (.Net 2008, Framework 3.5). Pin
musefan15-Nov-10 2:17
musefan15-Nov-10 2:17 
GeneralRe: Problem in ToolStripButton (.Net 2008, Framework 3.5). Pin
priyamtheone16-Nov-10 3:30
priyamtheone16-Nov-10 3:30 
GeneralRe: Problem in ToolStripButton (.Net 2008, Framework 3.5). Pin
musefan16-Nov-10 3:44
musefan16-Nov-10 3:44 
GeneralRe: Problem in ToolStripButton (.Net 2008, Framework 3.5). Pin
priyamtheone16-Nov-10 4:15
priyamtheone16-Nov-10 4:15 
GeneralRe: Problem in ToolStripButton (.Net 2008, Framework 3.5). Pin
priyamtheone18-Nov-10 2:41
priyamtheone18-Nov-10 2:41 
GeneralRe: Problem in ToolStripButton (.Net 2008, Framework 3.5). Pin
fnoppers21-Nov-10 16:27
fnoppers21-Nov-10 16:27 
Questionis it possible to show an excel in the window form? Pin
neodeaths31-Oct-10 3:08
neodeaths31-Oct-10 3:08 
AnswerRe: is it possible to show an excel in the window form? Pin
Karthik. A31-Oct-10 5:26
Karthik. A31-Oct-10 5:26 
AnswerRe: is it possible to show an excel in the window form? Pin
RaviRanjanKr18-Dec-10 20:56
professionalRaviRanjanKr18-Dec-10 20:56 
Questiondeveloping webservice for windows form Pin
parul@12318-Oct-10 1:36
parul@12318-Oct-10 1:36 
AnswerRe: developing webservice for windows form PinPopular
Dave Kreskowiak19-Oct-10 2:07
mveDave Kreskowiak19-Oct-10 2:07 
AnswerRe: developing webservice for windows form Pin
Dr.Walt Fair, PE3-Nov-10 5:48
professionalDr.Walt Fair, PE3-Nov-10 5:48 
QuestionA quick Excel Question Pin
Alan Burkhart14-Oct-10 3:48
Alan Burkhart14-Oct-10 3:48 
AnswerRe: A quick Excel Question Pin
DaveAuld18-Oct-10 19:34
professionalDaveAuld18-Oct-10 19:34 
GeneralRe: A quick Excel Question Pin
Alan Burkhart19-Oct-10 3:53
Alan Burkhart19-Oct-10 3:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.