Bind each gridviewcomboboxcell to different datasource

2 posts, 0 answers
  1. Ah
    Ah avatar
    2 posts
    Member since:
    Apr 2012

    Posted 18 Apr 2012 Link to this post

    Hi.
     I use RadGridView that has these columns.
    1.ProducId(tetxtboxcolumn)
    2.ProductName(tetxtboxcolumn)
    3.UnitType(comboboxcolumn)

    i want to add a new row to radgridview while a new row added, Unittype shoud bind to table unittypes base of  ProductId
     in my db that has these fields
    1.ProducId
    2.Firstunit 
    2.SecondUnit
    3.ThirdUnit

  2. Ivan Petrov
    Admin
    Ivan Petrov avatar
    705 posts

    Posted 21 Apr 2012 Link to this post

    Hello Ahmad,

    Thank you for writing.

    Basically, you have to set the DataSource, DisplayMemeber and ValueMember properties of the column. More information regarding the combobox column can be found in our online documentation. There you will find a detailed explanation describing how to set up such a column and how to modify its editor.

    I hope this helps. Should you have further questions, I would be glad to help.
     
    All the best,
    Ivan Petrov
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top