CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 14 of 14

Threaded View

  1. #9
    Join Date
    Sep 2011
    Posts
    6

    Re: How to add Items in the DatagridViewComboboxColumn of DatagridView during runtime

    Just read this i think this will give clearer idea.
    Please check.
    I have a datagridview with three columns which is filled using Datareader. There is a DatagridViewComboboxcolumn in the datagridView.

    I want this DatagridViewComboboxcolumn should also be filled using datareader.

    Please suggest how can i add items to DatagridViewComboboxcolumn using Datareader. Below is the code that i have tried.

    Here dr is SqlDatareader
    I want to assign the value of Column3 to my DatagridViewComboboxcolumn

    Datagridview.Rows.Add(dr("Column1").ToString, dr("Column2"),dr("Column3 "))

    Please suggest me how can i add items to DatagridViewComboboxcolumn,that my only priority rest requirement i will do it myself.
    thanks.
    Last edited by Ehtesham Siddiqui; October 13th, 2011 at 08:59 AM. Reason: Correction

Tags for this Thread

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

Featured