ADAdministrator Syncfusion Team June 29, 2005 02:24 PM
So, in the drop list, you want to see full names, but in the textbox portion of the cell, you want to see something else?
Here is what I would try first. Set you your combobox cell style to use a style.DataSource, style.DataMember and Style.ValueMember. This way your values in the grid will be style.ValueMember type objects, and the display in teh grid will show the style.DisplayMember object. Then to get the textbox portion to display teh ValueMember instead of the DisplayMember, in the DrawCellDisplayText event, set e.Text = e.Style.Text.
MCMartin CyrJune 29, 2005 02:38 PM
I already did set the Display and Value Members, but I can''t find the value, only the display. Text, FormattedText and CellValue all points out to the display member...
ADAdministrator Syncfusion Team June 29, 2005 02:51 PM
Here is a little sample showing what I described.
MCMartin CyrJune 30, 2005 08:58 AM
Again, I did that, the only difference is that I need it in a Grid-in-a-cell. Here''s what I did, if you can tell me why it''s not working... =\
Btw, it''s in VB.NET, so if it''s a problem, just say and I''ll try to convert to C#...
MCMartin CyrJune 30, 2005 09:12 AM
And also, how could I add more than one "inner grid" to the cell? Or should I divide the cell? Or perhaps just merge the headers? (I need 2x2 inner grids in each cell)
ADAdministrator Syncfusion Team June 30, 2005 09:13 AM
When I run your sample, as soon as I click off the cell (in the inner grid), then value member is shown. I am using 22.214.171.124.
If you want to see it as soon as the dropdown closes, then you can override OnCurrentCellCloseDropDown in the embedded grid class and end the edit at that point.
Protected Overrides Sub OnCurrentCellCloseDropDown(ByVal e As Syncfusion.Windows.Forms.PopupClosedEventArgs)
MCMartin CyrJune 30, 2005 09:18 AM
Argh, you got me on that one, sorry, I didn''t try changing cell :)
Now for the 2x2 inner grids...
Thanks a lot Clay