Generate ComboBox Column

HI,

i have a sfDataGrid that uses a List<Animal> as a data source 

1 of the Animal Properties is a List<DateTime> called CalvingDates

at the moment I am saying 

sfDataGrid1.DataSource = GetAnimals() //returns a list of animals

the CalvingDates Column is not generated

where or how do i get the grid to generate a combobox column for this property containing the dates (there may be no dates also !!! ).

thanks Peter !! 

 





6 Replies

VS Vijayarasan Sivanandham Syncfusion Team May 4, 2022 03:23 PM UTC

Hi Peter,

Based on provided information we have prepared the sample for achieve your requirement. Please find the sample in the attachment.

UG Link: https://help.syncfusion.com/windowsforms/datagrid/columntypes#gridcomboboxcolumn

https://help.syncfusion.com/windowsforms/datagrid/columntypes#loading-different-datasources-for-each-row-of-gridcomboboxcolumn

Please have a look at this sample and let us know if you have any concerns in this.

Regards,

Vijayarasan S


Attachment: SfDataGridDemo_9af0f792.zip


OS Ofella Spaulding May 10, 2022 07:36 AM UTC

Hey thanks for the special and helpful reply. In this you described very well. I have

been reading all details you described here. If I want any more guideline I will contact

you here https://www.syncfusion.com/forums/174799/generate-floridalottery-combobox-column.



PE Peter May 10, 2022 09:17 AM UTC

This is working for me perfectly now !!! 


Thanks



LP Lulita Pound May 11, 2022 02:20 AM UTC

My problem is solved thanks to all. I am going to share this thread https://www.syncfusion.com/forums/174799/generate-gosloto-combobox-column with my friends and brother who faced the same problem. 

Thanks again




VS Vijayarasan Sivanandham Syncfusion Team May 11, 2022 08:46 AM UTC

Hi Ofella Spaulding/ Peter/ Lulita Pound,


We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you😊.


Regards,

Vijayarasan S



BC Barry Coito August 1, 2022 03:59 PM UTC

Hi everyone 😊

I am totally agree with your answers my problem is solved. I am very happy.

Have a good day 


Loader.
Up arrow icon