المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : change Column type of a binded datagridview



C# Programming
08-26-2009, 07:25 PM
Hello

Is there any way to change the type of a column in a binded datagridview

I set the datasource of a datagridview from a datatable
This datatable contain two column needed for my purpose : an id and a text

I have another table Fruit
Each Fruit have an Id and A text
Of course I can also bind that table to a ComboBox


At run time in the DGV I need to show a column whith the fruit related to each row but I need to be able to get a combo cell on that column to chose another fruit from the fruit table

Is it possible ?
How can I do that

Thank for any help