Moving from string array into datarow
<p>I have a problem with assigning string array into Datarow. Firstly, i have created the object for string array and put 2 values in the array out of 100(whole size). How many values should be placed in the array dependds on a different, which i am not showing here, though. </p>

<p>Then i tried converting into DataRow. But it says. "object reference not set to an instance of an object"</p>

<pre><code>DataRow dr = null;
string[] strconcat = new string[100];
dr["concat"] = strconcat[i];
</code></pre>

<p>Thanks in advance</p>

<p>Edit--  Actually i was trying put these string array values into dropdown (ddchooseadeal). Is there any other good way other than this.</p>

<pre><code> locname = ddchoosealoc.SelectedValue.ToString();
            string[] strdeals = new string[100];
            string[] strconcat = new string[100];
            int i;
            for(i =0; i&lt; dsdeal.Tables[0].Rows.Count; i++)
            {
               strdeals[i] = Convert.ToString( dsdeal.Tables[0].Rows[i]["Title"]);
               strconcat[i] = strdeals[i]+" -- "+ locname;
            }
               DataRow dr = null;
               ddchooseadeal.Items.Clear();
               ListItem li = new ListItem("Choose a Deal");
               ddchooseadeal.Items.Add(li);


               dr["drconcat"] = strconcat[0];
               ListItem item = new ListItem();
               item.Text = NullHandler.NullHandlerForString(strconcat[i], string.Empty);
               ddchoosealoc.Items.Add(item);
</code></pre>
