Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataGrid Behaviour
Message
From
15/11/2007 14:44:10
 
 
To
15/11/2007 09:56:35
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
01268926
Message ID:
01269251
Views:
12
Thank you for the interest Bonnie.

Meanwile i solved my problem.

The object ColArtigoGenerico is a DataGridView.ComboBox, and it has a property called ValueMember. This property holds a string pointing to the object that represents the DataColumn field.

I need that code to associate the combobox to the underlay value in the DataGrid.

About my problem: was caused by a DataTable Method i used between the 1st and 2nd call of the button event: The Reset Method. I should have used Clear instead, because, apparently, Reset clears all data including DataBinding information, and Clear only deletes Data provided by the DataProvider, oh how i miss fox.

Joaquim

>Joaquim,
>
>That methodology should work ... I just tried it myself. What I don't understand in your code though, is where do the following two lines fit in?
>
>
>ColArtigoGenerico.ValueMember = DGV.Columns[0].DataPropertyName;
>ColArtigoFinal.ValueMember = DGV.Columns[1].DataPropertyName;
>
>
>I don't know what ColArtigoGenerico is ... it's not a DataGridViewColumn, they don't have a .ValueMember property. So, when I tested your code, I obviously didn't have those two lines in my test. Everything worked fine.
>
>Does that help maybe pinpoint what your problem is? If not, there's probably something you didn't post here that's causing the problem.
>
>~~Bonnie
>
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform