in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

New to FlexGrid and drop downcombo

Last post 10-10-2007 10:13 AM by michaelhawk. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-26-2007 4:18 PM

    New to FlexGrid and drop downcombo

     I am very new to C1 Studio (less than 24 hours). If someone can point me to some examples showing what I want to do I would appreciate it.

    I have 3 grids, the first shows available product and loads from the SQL Server db, When the user double clicks on an line item I want to move it to the second grid which accumulates the item in the order.

    One field of the line item describes the item as a string of letters (ex. HKSDITMSKSS).

    When the user clicks on the line item I want to take this string and use it to populate the first column of a two column grid with one letter n each row. The other column would be a combo drop down with a list of modifiers that is read from another table.

     I need to save the string and the modifier that the user has selected.

    I am looking for some sample code on how to load a drop down combo so that it will appear in  each cell of the second column of the grid as well as any samples on how to do the rest of it..

     

    Thanks in advance,

    Michael 

     

    Filed under: , ,
  • 10-04-2007 2:55 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 500

    Re: New to FlexGrid and drop downcombo

    Hi Michael,

    I've attached a sample that I think does what you're looking for regarding the two grids with C1Combo.  Basically you bind the C1Combo to your datasource and set it as the Editor of the specific column.

     

    Regards,
    Greg L

  • 10-10-2007 10:13 AM In reply to

    Re: New to FlexGrid and drop downcombo

    Thanks for the example but even though I can see all the C1 stuff when I try to display the form it blows up?

    I will look at the code and see if I can figure it out later.

    Thanks, 

    Michael 

    Could not find type 'FlexGridComboSample.NwindDataSet'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built.


    The variable 'NwindDataSet' is either undeclared or was never assigned.

    Hide    Edit

    at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)
    at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
    at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
    at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)

    Could not find type 'FlexGridComboSample.NwindDataSetTableAdapters.CategoriesTableAdapter'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built.

     

Page 1 of 1 (3 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.