Click here to Skip to main content
16,006,819 members
Home / Discussions / C#
   

C#

 
GeneralALT + SHIFT Effect Programatically Pin
Ali Beirami1-Aug-05 3:29
Ali Beirami1-Aug-05 3:29 
GeneralRe: ALT + SHIFT Effect Programatically Pin
Mohamad Al Husseiny1-Aug-05 4:38
Mohamad Al Husseiny1-Aug-05 4:38 
GeneralRSS related question Pin
profoundwhispers1-Aug-05 3:16
profoundwhispers1-Aug-05 3:16 
GeneralRe: RSS related question Pin
S. Senthil Kumar1-Aug-05 7:21
S. Senthil Kumar1-Aug-05 7:21 
GeneralParsing XML Pin
Neel071-Aug-05 2:30
Neel071-Aug-05 2:30 
GeneralRe: Parsing XML Pin
Lars Niedziolka1-Aug-05 14:16
Lars Niedziolka1-Aug-05 14:16 
GeneralRe: Parsing XML Pin
Neel071-Aug-05 23:34
Neel071-Aug-05 23:34 
GeneralError message with AutoNumber column issue- update DB Pin
sea#1-Aug-05 2:16
sea#1-Aug-05 2:16 
I implemented article “Inserting relational data using DataSet and DataAdapter” from this link: http://www.codeproject.com/cs/database/relationaladonet.asp[^] In my code.
It has a perfect explanation; still I got stuck at one point.
Debugger shows when that when I’m at this stage:

static void CustDataAdapter_OnRowUpdate(object sender, OleDbRowUpdatedEventArgs  e)
		{
			OleDbCommand custCmd = new OleDbCommand("SELECT @@IDENTITY", e.Command.Connection);   //right after this line
			e.Row["CustID"] = custCmd.ExecuteScalar();
			e.Row.AcceptChanges();
		}

This method defines the OleDbRowUpdatedEventHandler event, which comes to solve the AutoNumber column issue.

I got a message box error:

Problem populating dataset Box: [System.NullReferenceException: Object reference not set to an instance of an object at (object sender, OleDbRowUpdatedEventArgs e) in [path to file name]


There is some more text below it, but this seems to be the main thing. Why do I get NullReferenceException? What did I missed?


sea#
Generalhelp required regarding displaying JPEGs Pin
arusmemon1-Aug-05 1:19
arusmemon1-Aug-05 1:19 
Generalwebconfig Pin
Brendan Vogt1-Aug-05 1:06
Brendan Vogt1-Aug-05 1:06 
GeneralRe: webconfig Pin
User 16732522-Aug-05 3:08
User 16732522-Aug-05 3:08 
GeneralRe: webconfig Pin
Brendan Vogt2-Aug-05 3:18
Brendan Vogt2-Aug-05 3:18 
GeneralRe: webconfig Pin
User 16732522-Aug-05 20:35
User 16732522-Aug-05 20:35 
Generalworking with greyscale tiff 16bpp!! Pin
Niles Davis1-Aug-05 0:46
Niles Davis1-Aug-05 0:46 
QuestionSet Statusbar panels forecolor ? Pin
fracalifa1-Aug-05 0:07
fracalifa1-Aug-05 0:07 
AnswerRe: Set Statusbar panels forecolor ? Pin
Mohamad Al Husseiny1-Aug-05 9:55
Mohamad Al Husseiny1-Aug-05 9:55 
Generalgive a name to a dialog box Pin
nidhelp1-Aug-05 0:04
nidhelp1-Aug-05 0:04 
GeneralRe: give a name to a dialog box Pin
Rick Beideman1-Aug-05 4:15
Rick Beideman1-Aug-05 4:15 
QuestionHow should I store my Data? Pin
J. Holzer31-Jul-05 23:15
J. Holzer31-Jul-05 23:15 
AnswerRe: How should I store my Data? Pin
Alomgir Miah1-Aug-05 4:45
Alomgir Miah1-Aug-05 4:45 
AnswerRe: How should I store my Data? Pin
HumanOsc1-Aug-05 6:25
HumanOsc1-Aug-05 6:25 
AnswerRe: How should I store my Data? Pin
DavidNohejl1-Aug-05 7:16
DavidNohejl1-Aug-05 7:16 
GeneralRe: How should I store my Data? Pin
Anonymous1-Aug-05 10:30
Anonymous1-Aug-05 10:30 
GeneralDataRow vs BusinessObject Pin
WDI31-Jul-05 22:20
WDI31-Jul-05 22:20 
GeneralRe: DataRow vs BusinessObject Pin
Alomgir Miah1-Aug-05 4:41
Alomgir Miah1-Aug-05 4:41 

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.