# Simple DropDownList in DataGridView

**URL:** <https://forum.kirupa.com/t/simple-dropdownlist-in-datagridview/302226>\
**Category:** programming\
**Created:** [December 23, 2009, 7:57pm UTC](https://forum.kirupa.com/t/simple-dropdownlist-in-datagridview/302226 "2009-12-23T19:57:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Corpes](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@Corpes](https://forum.kirupa.com/u/Corpes)\
**Post date:** [December 23, 2009, 7:57pm UTC](https://forum.kirupa.com/t/simple-dropdownlist-in-datagridview/302226/1 "2009-12-23T19:57:21Z")

</div>

I’m trying to insert values into dropdownlist that placed in datagridview - itemtemplate dynamically.  
I’v typed:

```php
 DropDownList dd=(DropDownList)gridViewRowVar.FindControl("techniciansDDL");
dd.Items.Add("ddd");

```

and there’s a problem: System.NullReferenceException was unhandled by user code, and something like:  
The reference to the object had not been classified to the event of the object.  
The error is just on runtime,  
icant understand why its so complicated to insert a simpal information into ddl. plz help~!

Tell me if i wasnt clear!!!
