Click here to Skip to main content
15,906,567 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to do this in C#? Pin
Stefan Troschuetz31-Oct-04 21:05
Stefan Troschuetz31-Oct-04 21:05 
GeneralPrint a String From Server Side C# Pin
macsgirl31-Oct-04 14:27
macsgirl31-Oct-04 14:27 
GeneralReflection help - child classes Pin
David Wengier31-Oct-04 14:22
David Wengier31-Oct-04 14:22 
GeneralRe: Reflection help - child classes Pin
David Wengier31-Oct-04 17:04
David Wengier31-Oct-04 17:04 
GeneralDownloader and Install files from the WEB (Like the Windows Updates) Pin
programming31-Oct-04 12:04
programming31-Oct-04 12:04 
GeneralRe: Downloader and Install files from the WEB (Like the Windows Updates) Pin
kaptaintens31-Oct-04 13:25
kaptaintens31-Oct-04 13:25 
GeneralVirtual network IPs Pin
bouli31-Oct-04 8:27
bouli31-Oct-04 8:27 
GeneralRe: Virtual network IPs Pin
Dave Kreskowiak1-Nov-04 3:21
mveDave Kreskowiak1-Nov-04 3:21 
GeneralRe: Virtual network IPs Pin
bouli1-Nov-04 4:15
bouli1-Nov-04 4:15 
GeneralRe: Virtual network IPs Pin
Dave Kreskowiak1-Nov-04 6:21
mveDave Kreskowiak1-Nov-04 6:21 
GeneralSetItemData Pin
bouli31-Oct-04 6:54
bouli31-Oct-04 6:54 
GeneralRe: SetItemData Pin
c#amateur31-Oct-04 11:33
c#amateur31-Oct-04 11:33 
GeneralRe: SetItemData Pin
bouli31-Oct-04 11:38
bouli31-Oct-04 11:38 
GeneralRe: SetItemData Pin
Luis Alonso Ramos31-Oct-04 12:31
Luis Alonso Ramos31-Oct-04 12:31 
GeneralRe: SetItemData Pin
bouli31-Oct-04 23:54
bouli31-Oct-04 23:54 
General.xml to .doc,.html,.rtf Pin
makakiu31-Oct-04 5:36
makakiu31-Oct-04 5:36 
GeneralRe: .xml to .doc,.html,.rtf Pin
Christian Graus31-Oct-04 8:26
protectorChristian Graus31-Oct-04 8:26 
QuestionWhat's the problem? Pin
momer31-Oct-04 5:15
momer31-Oct-04 5:15 
AnswerRe: What's the problem? Pin
Stefan Troschuetz31-Oct-04 7:00
Stefan Troschuetz31-Oct-04 7:00 
GeneralRe: What's the problem? Pin
momer31-Oct-04 7:25
momer31-Oct-04 7:25 
GeneralUploade file to server problem! Pin
QzRz31-Oct-04 4:58
QzRz31-Oct-04 4:58 
Generalbound control looses changes after leaving panel Pin
Peter Kiesel31-Oct-04 3:25
Peter Kiesel31-Oct-04 3:25 
Hi All,
I have bound textboxes and other controls on a panel. If I edit the text in a textbox and move on to another control, everything works fine and I can use
HasVersion(DataRowVersion.Proposed)
to determine if there have been any changes to any control.
BUT, if I make only a single change to one text control and leave the panel afterwards by clicking into another panel on the screen, the proposed version flag is not set and I'm missing to save the change to the underlying dataset and database.

Binding:
txtCode.DataBindings.Add("Text", m_vProject, "code");
...
and after leaving the panel:
BindingManagerBase bm = BindingContext[m_vProject];
cPrjDs.tProjectRow prjRow = (cPrjDs.tProjectRow)(((DataRowView)bm.Current).Row);
if (prjRow.HasVersion(DataRowVersion.Proposed)) {
if (MessageBox.Show("save changes?", "header", ...)) {
bm.EndCurrentEdit();

To my understanding, it would be possible to catch the TextChanged event of the control and start DataRow.BeginEdit(), but this does not seem to be a practical solution for lots of controls.

Thanks for any help.


Peter

GeneralOverflow exception Pin
Ahmed Galal31-Oct-04 1:26
Ahmed Galal31-Oct-04 1:26 
GeneralRe: Overflow exception, a question Pin
yoaz31-Oct-04 2:20
yoaz31-Oct-04 2:20 
GeneralRe: Overflow exception, a question Pin
Ahmed Galal31-Oct-04 21:49
Ahmed Galal31-Oct-04 21:49 

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.