>
I am now experiencing this error on the first replacement "[NullReferenceException: Object reference not set to an instance of an object.]"
>
>I am trying this :
>
>drPMRLog["PMRLog.Title"] = ComboBox.Text
>
>It did, however, add the new row.
>
>Try it without the PMRLog. part of your column name. I'm not sure, but I think that the table name is implicit to the datarow and not necessary here.
Also, I didn't include this in my sample, but you could also do a check for the existance of the datarow object before attempting to use it.
Is the value of ComboBox.Text a string in the debugger?
>pre>
if(drPMLog != null)
{
drPMRLog["Title"] = ComboBox.Text
}
Kendall Webb
Senior Software Engineer
MCAD.Net/MCSD.Net