16,022,362 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by kjain18 (Top 7 by date)
kjain18
16-Dec-11 3:35am
View
I'm the developer of the code.
As my sample code demonstrates, the size of the DataRow is fixed, and I access the cell element by the corresponding ColumnName. The row is added/updated to the table before it's passed to ProdessDR for processing.
Regards
kjain18
16-Dec-11 3:10am
View
@Abhinav, due to some practical constraints (cannot disclose them) I can only log information; I cannot step through the running code...
kjain18
16-Dec-11 1:11am
View
I guess you're referring to "NullPointerException" but I'm faced with the "IndexOutOfRangeException"...
Also, stepping through the code is not an option.
Regards
kjain18
23-Dec-10 23:01pm
View
Thanks Pete! You're right about both '1' and '2'.
kjain18
23-Dec-10 22:57pm
View
Thanks all for your responses! Apologies for not being v clear initially itself.
I'm trying to implement a generic producer-consumer queue (let's call it 'pcq'). I have a WinForm application which needs to handle (extract information and act on it) various types of user-defined class objects (say, for example, an instance of StudentData class which could have all the performance related information of the student for all the previous years and my application would be asked to draw a graph of the performance for the student). Please note that application may not be aware either of the request type (that's why task type is object), or of the kind or number of actions to be taken (that's why user of the application passes a multicast delegate to the application). Application, hence, essentially provides a 'pcq' for processing user-defined tasks in user-defined manner. The purpose of sharing a dictionary between the user and the application was for the application to dispatch the correct delegates for a given task object upon its processing in the pcq's consumer thread. The dictionary is populated with task-type and multicast delegates before initializing the pcq.
My application would want to do it in a serial manner for all the incoming requests (a request contains an instance of, say StudentData class, BUT can also contain an object of type EmployeeData class, for which the processing would of course be different), and on another thread than the main GUI thread (hence the choice of pcq).
kjain18
8-Dec-10 22:31pm
View
I wouldn't want to use web-development related technologies for this, as it'd unnecessarily amount to adding so many extra libraries just for this purpose. I'd prefer to use something more 'native' to C# WinForm programming. Thanks anyway for your response!
kjain18
8-Dec-10 22:28pm
View
Thanks for the comment; but, it wouldn't work. As soon as the DataSource property is set, it becomes 'persistent', that is all the new updates get automatically reflected in the 'dgv'. The event handler I showed was just representative... what I want to achieve is to set the display of the 'dgv' to 'dt' *selectively*.
Show More