Results 1 to 2 of 2

Thread: add item to datagridcombobox

  1. #1

    Thread Starter
    Member
    Join Date
    May 2009
    Location
    VietNam
    Posts
    56

    add item to datagridcombobox

    i have a datagridview and i have a column combox.( first column)

    i want to add item to combox of datagrid.

    but i cant get name of it. please tell me.
    Last edited by Nguyendangtruong; Jun 4th, 2009 at 02:21 AM.

  2. #2
    Fanatic Member manhit45's Avatar
    Join Date
    May 2009
    Location
    Ha noi - Viet Nam
    Posts
    826

    Re: add item to datagridcombobox

    try this :


    Code:
      
             Dim dgvcolum As DataGridViewComboBoxColumn
            dgvcolum = DataGridViewX1.Columns(0)
            dgvcolum.Items.Add("43634")
            dgvcolum.Items.Add("43634")
            dgvcolum.Items.Add("43634")
            dgvcolum.Items.Add("43634")
    --***----------***-----

    If i help you please rate me.

    Working with Excel * Working with String * Working with Database * Working with array *

    K51 ĐH BÁCH KHOA HÀ NỘI - Khoa CNTT pro.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width