Click here to Skip to main content
15,898,035 members
Home / Discussions / C#
   

C#

 
GeneralRe: Serialization Question Pin
Stephane Rodriguez.17-Jan-03 10:36
Stephane Rodriguez.17-Jan-03 10:36 
GeneralCreating and using a Dll in Dev-C++ Pin
Aidman17-Jan-03 8:37
Aidman17-Jan-03 8:37 
GeneralRe: Creating and using a Dll in Dev-C++ Pin
Stephane Rodriguez.17-Jan-03 8:44
Stephane Rodriguez.17-Jan-03 8:44 
GeneralRe: Creating and using a Dll in Dev-C++ Pin
Aidman17-Jan-03 8:48
Aidman17-Jan-03 8:48 
GeneralRe: Creating and using a Dll in Dev-C++ Pin
David Stone17-Jan-03 10:53
sitebuilderDavid Stone17-Jan-03 10:53 
GeneralRe: Creating and using a Dll in Dev-C++ Pin
Aidman17-Jan-03 11:26
Aidman17-Jan-03 11:26 
GeneralGeting the Row count in response to RowDeleted Pin
stephen woolhead17-Jan-03 6:22
stephen woolhead17-Jan-03 6:22 
GeneralRe: Geting the Row count in response to RowDeleted Pin
Stephane Rodriguez.17-Jan-03 21:41
Stephane Rodriguez.17-Jan-03 21:41 
The order of events being triggered are as follows :

- RowChanging
- RecordStateChanged
- RowChanged
- and only then the Rows.Count value is updated (!) ( this.Rows.ArrayAdd(row); )

Since DataRowCollection (what you get with this.Rows) is an internal class, and on the other hand the collection itself (ArrayList) doesn't trigger any event when objects are added, updated or removed, I am afraid you are a bit bound to rely on code like this :
- make sure to subscribe for all RowChanged events.
- make sure to read the DataRawChangedEventArgs .Action property passed along with it, and check for one of these actions {Add, Change, Commit, Delete, Nothing, Rollback}.
- then, from the current Row Count value, and this action, just try to guess the final Row Count value. (*)
- alternatively to (*), create a short life timer in your RowChanged event handler and let it go. Then get the actual Row Count value when the timer signals.
GeneralRe: Geting the Row count in response to RowDeleted Pin
stephen woolhead18-Jan-03 1:34
stephen woolhead18-Jan-03 1:34 
QuestionPanel with labels on them - Who Clicked me? Pin
S S Basra17-Jan-03 4:16
S S Basra17-Jan-03 4:16 
AnswerRe: Panel with labels on them - Who Clicked me? Pin
Nnamdi Onyeyiri19-Jan-03 3:05
Nnamdi Onyeyiri19-Jan-03 3:05 
GeneralRe: Panel with labels on them - Who Clicked me? Pin
S S Basra19-Jan-03 21:20
S S Basra19-Jan-03 21:20 
GeneralScrollbox - View Caret Position / Listbox - No Scrollbars Pin
MrEyes17-Jan-03 2:27
MrEyes17-Jan-03 2:27 
GeneralRe: Scrollbox - View Caret Position / Listbox - No Scrollbars Pin
Stephane Rodriguez.18-Jan-03 1:53
Stephane Rodriguez.18-Jan-03 1:53 
GeneralBidirectional TCP Genuine Channels are Available. Pin
Bill200217-Jan-03 0:13
Bill200217-Jan-03 0:13 
GeneralRe: dynamically creating & modfying XML file using C# Pin
David Stone17-Jan-03 4:37
sitebuilderDavid Stone17-Jan-03 4:37 
GeneralProcess Filename Pin
CyberKewl16-Jan-03 21:59
CyberKewl16-Jan-03 21:59 
GeneralRe: Process Filename Pin
Nnamdi Onyeyiri19-Jan-03 2:58
Nnamdi Onyeyiri19-Jan-03 2:58 
GeneralRe: Process Filename Pin
CyberKewl19-Jan-03 3:49
CyberKewl19-Jan-03 3:49 
GeneralRe: Process Filename Pin
Nnamdi Onyeyiri19-Jan-03 3:50
Nnamdi Onyeyiri19-Jan-03 3:50 
GeneralSockets && Detecting FileSent Completion Pin
gekoscan16-Jan-03 12:52
gekoscan16-Jan-03 12:52 
GeneralRe: Sockets && Detecting FileSent Completion Pin
David Stone16-Jan-03 13:03
sitebuilderDavid Stone16-Jan-03 13:03 
GeneralRe: Sockets && Detecting FileSent Completion Pin
Nick Parker17-Jan-03 17:31
protectorNick Parker17-Jan-03 17:31 
GeneralTelnet Pin
David Stone16-Jan-03 11:44
sitebuilderDavid Stone16-Jan-03 11:44 
GeneralRe: Telnet Pin
Nnamdi Onyeyiri19-Jan-03 2:53
Nnamdi Onyeyiri19-Jan-03 2: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.