As I can see you are not converting DB value to Numeric format. With object type you can't apply string format. You can use it in following way -
if(dtCustomPrice.Rows[0]["curNDB"]!= DbNull.Value)
{
txtNdb.Text = Convert.ToDecimal(dtCustomPrice.Rows[0]["curNDB"]).ToString("##.00");
}