The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I need to select an item in a combobox in a databound grid. The only problem is that the key is composed of two fields.
The two fields represent the key of the datamember table associated with the combobox.
I need the result of the selection to be in two fields in the table that is related to datagrid.
Please help!
ADAdministrator Syncfusion Team December 10, 2002 02:19 PM UTC
Can you explain more about what you need.
For example, exactly what column (or columns) should appear in the combobox? Exactly what columns should appear in your grid? When the user selects a value in the combobox, how does this change the values displayed in the grid?
Is the combobox bound to some datasource?
PCPascal CoutureDecember 10, 2002 03:00 PM UTC
Essentially, my datagrid is bound to a datatable in a dataset which I will name TABLE1.
In TABLE1, there is two columns that relate to the primary key of table MARKETS (columns MARKET AND ZONE).
I want the user to select a market in my datagrid with a combobox containing a list of markets from the MARKETS datatable.
I need a way that when the user selects a market from the list, the fields MARKET and ZONE of TABLE1 are filled depending on his selection.
Thanks for your help...
ADAdministrator Syncfusion Team December 10, 2002 03:31 PM UTC
So, does selecting a Market from the combobox uniquely determine the zone?
If so, try handling the CurrentCellAcceptedChanges event, and if the cell is your combobox, then explicitly set the value of the Market column based on the value selected in the combobox.