Click here to Skip to main content
15,921,463 members
Home / Discussions / C#
   

C#

 
GeneralRe: Which is more correct? Pin
Luc Pattyn17-Jan-10 9:32
sitebuilderLuc Pattyn17-Jan-10 9:32 
Question[StructLayout(LayoutKind.Sequential)] Pin
3bood.ghzawi17-Jan-10 5:31
3bood.ghzawi17-Jan-10 5:31 
AnswerRe: [StructLayout(LayoutKind.Sequential)] Pin
Luc Pattyn17-Jan-10 5:43
sitebuilderLuc Pattyn17-Jan-10 5:43 
AnswerRe: [StructLayout(LayoutKind.Sequential)] Pin
0x3c017-Jan-10 5:45
0x3c017-Jan-10 5:45 
AnswerRe: [StructLayout(LayoutKind.Sequential)] Pin
dan!sh 17-Jan-10 6:12
professional dan!sh 17-Jan-10 6:12 
AnswerRe: [StructLayout(LayoutKind.Sequential)] Pin
harold aptroot17-Jan-10 6:28
harold aptroot17-Jan-10 6:28 
AnswerRe: [StructLayout(LayoutKind.Sequential)] Pin
DaveyM6917-Jan-10 7:32
professionalDaveyM6917-Jan-10 7:32 
QuestionExtend BindingSource with a Dirty property and Dirty changed Event Pin
ArjenGroeneveld17-Jan-10 5:20
ArjenGroeneveld17-Jan-10 5:20 
Hello, I'm building a database WinForm application.
The data objects in my first application where based up on SQLDataConnector, DataSet, DataTables and SQLDataAdapter.

Now I moved on and I write Data object classes, which I fill with a SqlDataReader. Modifying the record is done by straight INSERT, UPDATE and DELETE queries written in a Data Object DB Class.
The technique is out of the book => Murach's ADO.Net 3.5 LinQ and the Entity Framework. After studying different technique I decided not to go for Entity Framework but hang around with writing my own data classes, making use of binding with data objects and most important ... understanding what happens under the Engine Cowling.

So far so GOOD.

The client interface works fine, but I like to give the User feedback as soon she/he is changing the content in one of the bounded controls (Textbox, comboBox, ect). In such case I like to show a pencil Icon on the form indicating the content has been changed. So I like to capture an event as soon the record becomes "DIRTY".
This way I can decided if an Update is required when the user clicks the button "Save and Close" (just like with leaving a MS Outlook contact form). If the 'IsDirty' property is 'false' the form just should close. Else it should write the changes back to the SQL server in advance of closing.

I studied the BindingSource control, but I cannot find an 'IsDirty' property as well no event related to this.
I found some articles on the web indicating the same problem. But the code samples are not providing a solution for me.

CONCREET: I like to customize the BindingSource by simply adding an "IsDirty" property and an "IsDirtychanged" event. Will this be an easy one????

Your help is most appreciated!

With kind regards,
Arjen Groeneveld
AnswerRe: Extend BindingSource with a Dirty property and Dirty changed Event Pin
Eddy Vluggen17-Jan-10 10:11
professionalEddy Vluggen17-Jan-10 10:11 
GeneralRe: Extend BindingSource with a Dirty property and Dirty changed Event Pin
ArjenGroeneveld17-Jan-10 10:38
ArjenGroeneveld17-Jan-10 10:38 
GeneralRe: Extend BindingSource with a Dirty property and Dirty changed Event Pin
Eddy Vluggen17-Jan-10 13:44
professionalEddy Vluggen17-Jan-10 13:44 
GeneralRe: Extend BindingSource with a Dirty property and Dirty changed Event Pin
ArjenGroeneveld17-Jan-10 21:24
ArjenGroeneveld17-Jan-10 21:24 
GeneralRe: Extend BindingSource with a Dirty property and Dirty changed Event Pin
Eddy Vluggen18-Jan-10 11:12
professionalEddy Vluggen18-Jan-10 11:12 
GeneralRe: Extend BindingSource with a Dirty property and Dirty changed Event Pin
sarapkamikazee1524-Aug-10 6:05
sarapkamikazee1524-Aug-10 6:05 
QuestionEmpty rows in daatagrid Pin
tasossty17-Jan-10 4:50
tasossty17-Jan-10 4:50 
AnswerRe: Empty rows in daatagrid Pin
Eddy Vluggen17-Jan-10 9:29
professionalEddy Vluggen17-Jan-10 9:29 
QuestionC# C++ Java performance comparison Pin
devvvy17-Jan-10 3:47
devvvy17-Jan-10 3:47 
AnswerRe: C# C++ Java performance comparison Pin
EliottA17-Jan-10 4:08
EliottA17-Jan-10 4:08 
AnswerRe: C# C++ Java performance comparison Pin
Luc Pattyn17-Jan-10 4:33
sitebuilderLuc Pattyn17-Jan-10 4:33 
AnswerRe: C# C++ Java performance comparison Pin
N a v a n e e t h17-Jan-10 4:34
N a v a n e e t h17-Jan-10 4:34 
AnswerRe: C# C++ Java performance comparison Pin
harold aptroot17-Jan-10 4:53
harold aptroot17-Jan-10 4:53 
GeneralRe: C# C++ Java performance comparison Pin
devvvy19-Jan-10 19:14
devvvy19-Jan-10 19:14 
GeneralRe: C# C++ Java performance comparison Pin
harold aptroot20-Jan-10 1:17
harold aptroot20-Jan-10 1:17 
Questionerrors pls help..... Pin
djsproject17-Jan-10 2:02
djsproject17-Jan-10 2:02 
QuestionMessage Removed Pin
17-Jan-10 1:03
sachees12317-Jan-10 1:03 

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.