This is a migrated thread and some comments may be shown as answers.

Bind each gridviewcomboboxcell to different datasource

1 Answer 71 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ah
Top achievements
Rank 1
Ah asked on 18 Apr 2012, 03:54 PM
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

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 21 Apr 2012, 02:49 PM
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 >>
Tags
GridView
Asked by
Ah
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Share this question
or