Click here to Skip to main content
15,888,579 members
Home / Discussions / C#
   

C#

 
GeneralRe: command line compiling Pin
Nick Parker17-Aug-04 7:25
protectorNick Parker17-Aug-04 7:25 
GeneralCurious focus problem. Pin
MrEyes17-Aug-04 6:48
MrEyes17-Aug-04 6:48 
GeneralDropDown Button Pin
Anonymous17-Aug-04 6:10
Anonymous17-Aug-04 6:10 
GeneralRe: DropDown Button Pin
Syed Abdul Khader17-Aug-04 6:33
Syed Abdul Khader17-Aug-04 6:33 
GeneralRe: DropDown Button Pin
cjengler18-Aug-04 1:24
cjengler18-Aug-04 1:24 
GeneralSending XML file as a parameter Pin
sacoskun17-Aug-04 5:52
sacoskun17-Aug-04 5:52 
GeneralRe: Sending XML file as a parameter Pin
Stanciu Vlad17-Aug-04 6:52
Stanciu Vlad17-Aug-04 6:52 
GeneralRe: Sending XML file as a parameter Pin
leppie17-Aug-04 8:19
leppie17-Aug-04 8:19 
GeneralDataGrid not update Pin
Fule17-Aug-04 5:21
Fule17-Aug-04 5:21 
Hi All,

I have DataGrid and Save button, problem is if i make changes on current record and press save button , datagrid is not update, but if i make changes and go to next record and then press save button my datagrid is updated ???
I find somewhere that I need to add in my code EndEdit, but because I’m beginner in C# ,I don’t know where and on what I need to include that part. Here is my code on save button:

<br />
private void btnSave_Click(object sender, System.EventArgs e)<br />
{<br />
  try <br />
    {<br />
	DataSet changedData = dsVessCert.GetChanges();<br />
	if (changedData != null)<br />
	{<br />
	int numRows = adVessCert.Update(changedData);<br />
	MessageBox.Show("Database updated " + numRows + " rows successfuly", "Success");<br />
	dsVessCert.AcceptChanges();<br />
      }<br />
	}<br />
 catch (Exception ex)<br />
    {<br />
   MessageBox.Show("Error in Update: " + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);<br />
	dsVessCert.RejectChanges();<br />
  }<br />
}<br />

Thanks
GeneralRe: DataGrid not update Pin
leppie17-Aug-04 5:54
leppie17-Aug-04 5:54 
GeneralRe: DataGrid not update Pin
dekhle17-Aug-04 5:56
dekhle17-Aug-04 5:56 
GeneralRe: DataGrid not update Pin
Heath Stewart18-Aug-04 11:02
protectorHeath Stewart18-Aug-04 11:02 
Generalclosing forms Pin
steve_rm17-Aug-04 5:20
steve_rm17-Aug-04 5:20 
GeneralRe: closing forms Pin
Anonymous17-Aug-04 5:53
Anonymous17-Aug-04 5:53 
GeneralRe: closing forms Pin
mav.northwind17-Aug-04 6:17
mav.northwind17-Aug-04 6:17 
GeneralRe: closing forms Pin
loop0722-Aug-04 17:19
loop0722-Aug-04 17:19 
GeneralRe: closing forms Pin
mav.northwind22-Aug-04 20:15
mav.northwind22-Aug-04 20:15 
GeneralMr ListView again Pin
yetanotherchris17-Aug-04 4:43
yetanotherchris17-Aug-04 4:43 
Generalfocus on next control in a WinForm Pin
Hovik Melkomian17-Aug-04 2:33
Hovik Melkomian17-Aug-04 2:33 
GeneralRe: focus on next control in a WinForm Pin
Nick Parker17-Aug-04 3:30
protectorNick Parker17-Aug-04 3:30 
GeneralRe: focus on next control in a WinForm Pin
Hovik Melkomian17-Aug-04 6:37
Hovik Melkomian17-Aug-04 6:37 
GeneralRe: focus on next control in a WinForm Pin
Stanciu Vlad17-Aug-04 7:02
Stanciu Vlad17-Aug-04 7:02 
GeneralWeb custom control complie in vb.net Pin
patrick.hatung17-Aug-04 1:56
patrick.hatung17-Aug-04 1:56 
GeneralRe: Web custom control complie in vb.net Pin
Nick Parker17-Aug-04 3:17
protectorNick Parker17-Aug-04 3:17 
Generalembedded database Pin
khchan17-Aug-04 1:48
khchan17-Aug-04 1:48 

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.