Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding rows to datagridview 1

Status
Not open for further replies.

lawlegacy

IS-IT--Management
Jun 5, 2006
53
US
How do I add rows to a datagrid with image columns?

I tried
datagridview.rows.add( dbnull.value, "hello", "test")
but it gave me an error.

I just need to know what value to put in for the image column.
 
You need to create a string array and pass that. Try this

Dim str as string() = {Nothing, "hello", "test"}

datagridview.rows.add(str)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top