Binding the grid Dynamically

aspx code::
<dx:ASPxGridView ID="gridEstimate" runat="server"
                                    KeyFieldName="Tech_EstimateId"
                                    Width="99%" AutoGenerateColumns="false"
>
                                        <Settings ShowHeaderFilterButton="true"
                                         EnableFilterControlPopupMenuScrolling="True"
                                         ShowFilterBar="Visible"
ShowFilterRow="True" ShowFilterRowMenu="True"
ShowFooter="True" VerticalScrollableHeight="350" />
</dx:ASPxGridView>
C# Code ::
gridEstimate.DataSource = _busiobj.LoadDatavaluestoGrid(Convert.ToInt32(cmbCategory.Value));
gridEstimate.DataBind();

I'd ask them over here.
Microsoft ASP.NET Forums 
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

Similar Messages

  • Hiding a column Attribute in the Grid Control in a DAC form.

    Hi,
    My RowsetInfo has a Image AttributeInfo and other kinds of AttributeInfo.I wanted to display the image in a seperate area in the form.The remaining Attributes would come in form as a detail grid.
    However, since I bind the Grid control to my rowsetInfo, and also since my rowsetinfo has an image AttributeInfo, I see an Image column there(which ofcourse contains references to these Image objects!!).
    I would want to hide this column in the grid.How do I go about it?Do I need to create a seperate rowsetinfo for the Image controlor there is a workaround for this?
    Any ideas??
    --Sandeep                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    Going through the previous discussions in this forum, I had also tried the following :
    JTable table = detailGrid.getTable();
    TableColumnModel tableColumnModel =
    table.getColumnModel();
    table.removeColumn(tableColumnModel.
    getColumn(1));
    This doesnot seem to work.I get the following exception:
    java.lang.ArrayIndexOutOfBoundsException: 1 >= 0
    java.lang.Object java.util.Vector.elementAt(int)
    javax.swing.table.TableColumn
    javax.swing.table.DefaultTableColumnModel.getColumn(int)
    void DAC2Package.DAC2Frame.jbInit()
    void DAC2Package.DAC2Frame.<init>()
    void DAC2Package.DAC2Application.<init>()
    void DAC2Package.DAC2Application.main(java.lang.String[])
    Since I have quite a few number of columns in the GridControl, I shouldnot be getting this
    exception in the first place.
    Also, I donot understand why
    tableColumnModel.getColumnCount() prints zero in the console.
    Thanks in advance,
    Sandeep
    null

  • How to bind the attribute in the context to a dynamic created element?

    Hi, experts,
    There are some attributes in the node context(ee_node) that contained the attribute named "ANSSA" in the view(test_view) in the WDA for abap. In the method modifyview of the view(there is a transfered parameter that represent the name of "ANSSA")
    I want to create a dynamic element(inputfield) in the test_view. The element need bind the context attribute (ANSSA).Through the transfered parameter(para), I only know the name of the attribute binded. 
    How can I bind the attribute of the context in the following code?
    METHOD modifyview .
    *importing para type string.
    *importing m_view type ref to  if_wd_view.
    data wd_inputfield type ref to cl_wd_input_field.
    create one element automatically in the view.
      wd_inputfield = CL_WD_INPUT_FIELD=>NEW_INPUT_FIELD(
                                        view = m_view
                                        id = para
                                        BIND_VALUE = ???
    ENDMETHOD.
    I don't know how to replace the "???" in the method modifyview? Do you give me some hint for it?
    You can reply back to me via e-mail if you think we should discuss this internally at [email protected] or [email protected]
    Thanks.
    Best regards,
    tao

    Hi, Suresh,
    Thanks a lot for your help.
    The last mail have some errors. Now, I modify my code error. The following is my new code in the wddomodifyview method in the ADDR_AUTO_DISP_VIEW view.
    Now, I modify my code. The following is my new code in the wddomodifyview method in the ADDR_AUTO_DISP_VIEW view.
    METHOD wddomodifyview .
    importing view   type ref to if_wd_view.
      DATA      transparent_container           TYPE REF TO cl_wd_transparent_container.
      DATA      inputfield                      type ref to cl_wd_input_field.
      transparent_container ?= view->get_element( `TRANSPARENT_CONTAINER` ).
      transparent_container->set_visible(
        EXPORTING
          value = if_wdl_core=>visibility_visible ).
    wd_this->SET_DYNAMIC_INPUT(
       EXPORTING
         inputfield_ID =  'ANSSA'
       IMPORTING
         INPUTFIELD    =  inputfield
    **************The web page will occur error when running the WDA as soon as I write the code.***********
      transparent_container->add_child( THE_CHILD = inputfield ).
    ENDMETHOD.
    The following is the code of the SET_DYNAMIC_INPUT method.
    method SET_DYNAMIC_INPUT .
    *importing
    *INPUTFIELD_ID    type STRING
    *exporting
    *INPUTFIELD    type ref to CL_WD_INPUT_FIELD
    Data binded_context       type string.
    concatenate 'ADDR_AUTO_DISP_VIEW.EE_ADDRESS.' INPUTFIELD_ID into binded_context .
    inputfield = CL_WD_INPUT_FIELD=>NEW_INPUT_FIELD(
    id = inputfield_id
    read_only = abap_true
    BIND_VALUE = binded_context
    endmethod.
    When I run the WDA, The web page occuring the error information:
    Note
    The following error text was processed in the system DEV : Access via 'NULL' object reference not possible.
    The error occurred on the application server devserver_DEV_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    But when I delete the code of the wddomodifyview, and create a inputfield in the layout of the view, and bind the "ANSSA" to the "value" property in the layout, the WDA is running correctly.
    Do you give me some hints?
    Thanks a million.
    Best regards,
    tao

  • Change the colour of the rectangle dynamically:

    Hi,
    I've some tiles in wpf application. (non clickable, drawn using Rectangle). I want to change the colour of the tile depending upon condition Ok, Warning, Error to the colour Blue, Yellow, Red respectively. 
    Can you please let me know how can I achieve this?
    Thanks,
    Santosh

    Thanks for the response.
    I'm using Datatemplate like below:
    <DataTemplate x:Key="Template1" DataType="{x:Type BusinessObjects:BindableCapability}">
                <Border x:Name="CapabilityBorder"
                              Background="{StaticResource GlobalHeaderBackgroundBrush}"
                              BorderBrush="{StaticResource TileBorderBrush}"
                              BorderThickness="1"
                              Margin="8"
                              Height="200"
                              Width="420">
                    <Grid>
                        <TextBlock x:Name="CapabilityTextBlock"
                                     Text="{Binding CapabilityIdentifierDescription}"
                                     Style="{StaticResource TileTitleTextStyle}"/>
                    </Grid>
                </Border>
                <DataTemplate.Triggers>
                    <DataTrigger Binding="{Binding IsAvailable}" Value="False">
                        <Setter TargetName="CapabilityBorder" Property="Background" Value="{StaticResource TileErrorBrush}"/>
                        <Setter TargetName="CapabilityTextBlock" Property="Foreground" Value="{StaticResource TileErrorForegroundBrush}"/>
                    </DataTrigger>
                </DataTemplate.Triggers>
            </DataTemplate>
            <DataTemplate x:Key="Template2" DataType="{x:Type BusinessObjects:BindableCapability}">
                <Border x:Name="CapabilityBorder"
                              Background="{StaticResource GlobalHeaderBackgroundBrush}"
                              BorderBrush="{StaticResource TileBorderBrush}"
                              BorderThickness="1"
                              Margin="8"
                              Height="200"
                              Width="202">
                    <Grid>
                        <TextBlock x:Name="CapabilityTextBlock"
                                     Text="{Binding CapabilityIdentifierDescription}"
                                     Style="{StaticResource TileTitleTextStyle}"/>
                    </Grid>
                </Border>
                <DataTemplate.Triggers>
                    <DataTrigger Binding="{Binding IsAvailable}" Value="False">
                        <Setter TargetName="CapabilityBorder" Property="Background" Value="{StaticResource TileErrorBrush}"/>
                        <Setter TargetName="CapabilityTextBlock" Property="Foreground" Value="{StaticResource TileErrorForegroundBrush}"/>
                    </DataTrigger>
                </DataTemplate.Triggers>
            </DataTemplate>
    Like Temlate1 and Templdate2, I should have one more template which fills the color dynamically for the above templates. I've 12 tiles (rectangles), I need to give some blue, some yellow and some red depending upon some condition.
    Please suggest how I can achieve this?
    Thanks,
    Santosh

  • Using bind variable in dynamic where clause and concatenate with query

    Hi,
    In my procedure i am framing where clause dynamically with bind variable,When i am concatenate this with my sql query for REF CURSOR i got sql command not properly ended exception.
    Is it possible to pass values to the bind variable through the dynamic variable/value?
    Please advise
    Thanks in advance
    Siva
    IF in_applicationId IS NOT NULL THEN
              optional_where := optional_where || ' AND a.APPLICATION_ID like '||':e%';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup'||',in_queue_id'||',in_applicationId';
         END IF;
    My query is like this
    open Out_Main FOR SelectQuery USING optional_using

    Thanks for reply,
    In my procedure, i suppose to frame the where clause with bind dynamically according to the input parameters. so that i am framing the values of the bind variables also dynamically like this,
    Please advise...
    IF in_assignedAppFlag IS NOT NULL THEN
              IF in_assignedAppFlag = 'Y' THEN
                   optional_where := optional_where || ' AND b.ASSIGNED_TO = :b' ;
              optional_using := ' in_appFuncGroup'||',in_currentUserID';          
              ELSe
                   IF in_isSupervisor = 0 THEN
                        optional_where := optional_where || ' AND (b.ASSIGNED_TO = :b'||' OR b.ASSIGNED_TO = ''-1'' OR b.ASSIGNED_TO IS NULL)';
              optional_using := ' in_appFuncGroup'||',in_currentUserID';
                   END IF;
              END IF;
         ELSE
              IF in_isSupervisor = 0 THEN
                   optional_where := optional_where || ' AND (b.ASSIGNED_TO = :b'||' OR b.ASSIGNED_TO = ''-1'' OR b.ASSIGNED_TO IS NULL)';
                   optional_using := ' in_appFuncGroup'||',in_currentUserID';
              END IF;
         END IF;
         IF in_appFuncGroup IS NOT NULL THEN
              optional_where := optional_where || ' AND e.APP_FUNC_GROUP= :c';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup';
         END IF;
         IF in_queue_id IS NOT NULL THEN
              optional_where := optional_where || ' AND b.QUEUE_ID = :d';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup'||',in_queue_id';
         END IF;
         IF in_applicationId IS NOT NULL THEN
              optional_where := optional_where || ' AND a.APPLICATION_ID like '||':e%';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup'||',in_queue_id'||',in_applicationId';
         END IF;
         IF in_sourceCode IS NOT NULL THEN
              optional_where := optional_where || ' AND e.APP_SOURCE_CODE like '||':f%';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup'
              ||',in_queue_id'||',in_applicationId'||',in_sourceCode';
         END IF;
         IF in_logo IS NOT NULL THEN
              optional_where := optional_where || ' AND appProds.PRODUCT_TYPE like '||':g%';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup'
              ||',in_queue_id'||',in_applicationId'||',in_sourceCode'||',in_logo';
         END IF;
         IF in_firstName IS NOT NULL THEN
              optional_where := optional_where || ' AND upper(a.FIRST_NAME) like upper(:h%)';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup'
              ||',in_queue_id'||',in_applicationId'||',in_sourceCode'||',in_logo'||',in_firstName';
         END IF;
         IF in_surName IS NOT NULL THEN
              optional_where := optional_where || ' AND upper(a.SURNAME) like upper(:i%)';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup'
              ||',in_queue_id'||',in_applicationId'||',in_sourceCode'||',in_logo'||',in_firstName'||',in_surName';
         END IF;
         IF in_retreival_id IS NOT NULL THEN
              optional_where := optional_where || ' AND e.RETREIVAL_ID like :j%';
              optional_using := ' in_appFuncGroup'||',in_currentUserID'||',in_appFuncGroup'
              ||',in_queue_id'||',in_applicationId'||',in_sourceCode'||',in_logo'||',in_firstName'||',in_surName'||',in_retreival_id';
         END IF;

  • Creating and Binding View Objects dynamically : Oracle Jdeveloper 11g

    Hello,
    We are trying to create and bind view objects dynamically to adf data visualization components.
    The view object is a result of multiple tables.
    We are using Oracle JDeveloper 11g Technical Preview. ( can't upgrade to TP2 or TP3 now).
    We have found this : http://radio.weblogs.com/0118231/stories/2003/07/15/creatingUpdateableMultientityViewObjectDefinitionsDynamically.html on our search for the same.
    The sample application however, is in 10g , hence required migration.
    Also, it was a standalone application with the TestClient.java having a main() method.
    Our requirement is for Web Application; we use Adf+jsf .
    Guidance of any sort is very much appreciated.
    Thanks in advance.
    -Anil Golla

    Hi,
    there also exist a forum for JDeveloper 11: JDeveloper and OC4J 11g Technology Preview
    What you are trying todo is not trivial because you need to not only dynamically create the VO, you would also dynamically need to create the binding meta data for it (assuming you use ADF). Not sure if the API to modify the binding is public, so posting it on the JDeveloper 11 forum bears a glimpse of hope for an answer
    In JDeveloper 10.1.3 you can't do this
    Frank

  • How to change the images dynamically in a table.

    Hai,
                     How to change the images dynamically in a table based on the condition in webdynpro abap.
    Edited by: Ravi.Seela on Oct 13, 2011 2:17 PM

    This has been much discussed earlier. Do search posts.
    For your scenario i would do the following.
    inside your node which is binded to the table, i create a new node image with cardinality 1 ..1 and a attribute called path of type string.
    create a  supply function for the node image .
    Supply method now has a Element (Parent element ) and node.
    Based on your record in element, set the right image source to path attribute and bind the node.
    This will make sure that the framework calls the image supply function for every row in a table.

  • How to display the rows dynamically in the table display in web dynpro abap

    Hi experts,
                   There is a visible row count tab where you can give the no of rows to be displayed in the output table, but i want it to be done dynamically as the row count of my table may change dynamically at runtime.
    And i want to know how to reduce the width of a column as my table display is taking the length as per the binded table specifications.Can anyone please help me out in this issue.
    Thanks in advance,
    Anita.

    Hi Anita
    You can bind the visiblerowcount property to the a context attribute. and at runtime you can set the context attribute to the no of rows you want in your table,
    Regards
    Naresh

  • Context binding error in Dynamic UI element creation

    Hi,
    I am new to Webdynpro. I am trying to build an app for dynamic table data in an ALV,so creating an input field for table name dynamically.
    I am facing a issue while binding the dynamic input field to the dynamically created context node attribute. The error description is: ERROR: Error in INPUT_FIELD "IF" of view "ZVK_DYNAMIC1.MAIN": Context binding of property VALUE cannot be resolved: The MAIN.1.INPUT node does not contain any elements (termination: RABAX_STATE).
    Following is the code written in wdinit( ) method and wdmodifyview( ) method of the view controller.
    METHOD wddoinit .
       DATA: lr_root_node_info  TYPE REF TO if_wd_context_node_info.
       DATA: lr_input_node_info TYPE REF TO if_wd_context_node_info.
       DATA: ls_attribute_info  TYPE wdr_context_attribute_info.
       lr_root_node_info = wd_context->get_node_info( ).  " get the root node
       CALL METHOD lr_root_node_info->add_new_child_node
         EXPORTING
           name                         = 'INPUT'
           is_multiple                  = abap_false
           is_multiple_selection        = abap_false
    *      is_initialize_lead_selection = abap_false
         RECEIVING
           child_node_info              = lr_input_node_info.
       CLEAR ls_attribute_info.
       ls_attribute_info-name          = 'TABLE_NAME'.
       ls_attribute_info-type_name     = 'STRING'.
       CALL METHOD lr_input_node_info->add_attribute
         EXPORTING
           attribute_info = ls_attribute_info.
    ENDMETHOD.
    METHOD wddomodifyview .
       DATA: lr_ui_root     TYPE REF TO if_wd_view_element.
       DATA: lr_container   TYPE REF TO cl_wd_uielement_container.
       DATA: lr_input_field TYPE REF TO cl_wd_input_field.
       DATA: lr_flow_data   TYPE REF TO cl_wd_flow_data.
       IF first_time EQ 'X'.
         lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
         CALL METHOD cl_wd_input_field=>new_input_field
           EXPORTING
    *       activate_access_key        =
    *       alignment  = E_ALIGNMENT-AUTO
    *       bind_alignment             =
    *       bind_display_as_text       =
    *       bind_display_only          =
    *       bind_enabled               =
    *       bind_ime_mode              =
    *       bind_input_prompt          =
    *       bind_length                =
    *       bind_password_field        =
    *       bind_read_only             =
    *       bind_state =
    *       bind_style_class_name      =
    *       bind_suggest_filter_method =
    *       bind_suggest_values        =
    *       bind_suppress_value_help   =
    *       bind_text_direction        =
    *       bind_tooltip               =
             bind_value = 'INPUT.TABLE_NAME'
    *       bind_visible               =
    *       bind_width =
    *       context_menu_behaviour     = E_CONTEXT_MENU_BEHAVIOUR-INHERIT
    *       context_menu_id            =
    *       date_picker_reference_id   =
    *       display_as_text            =
    *       display_only               =
    *       enabled    = 'X'
    *       explanation                =
             id         = 'IF'
    *       ime_mode   = E_IME_MODE-AUTO
    *       input_prompt               =
    *       length     = '20'
    *       multi_field_suggest        =
    *       no_history =
    *       on_enter   =
    *       on_table_paste             =
    *       password_field             =
    *       read_only  =
    *       state      = E_STATE-NORMAL
    *       style_class_name           =
    *       suggest_filter_method      =
    *       suggest_values             =
    *       suppress_value_help        =
    *       text_direction             = E_TEXT_DIRECTION-INHERIT
    *       tooltip    =
    *       view       =
    *       visible    = E_VISIBLE-VISIBLE
    *       width      =
           RECEIVING
             control    = lr_input_field.
         CALL METHOD cl_wd_flow_data=>new_flow_data
           EXPORTING
    *       cell_design = E_CELL_DESIGN-PADLESS
             element = lr_input_field
    *       id      =
    *       v_gutter    = E_V_GUTTER-NONE
           RECEIVING
             control = lr_flow_data.
         CALL METHOD lr_input_field->set_layout_data
           EXPORTING
             the_layout_data = lr_flow_data.
         CALL METHOD lr_container->add_child
           EXPORTING
    *       index     =
             the_child = lr_input_field.
       ENDIF.
    ENDMETHOD.
    Please help.

    Hi Vishal,
    Actually, for an input field the node should be with cardinality either 1...1 / 1...n. i.e. at least one element should exist. So you need to pass "is_mandatory = abap_true" while creating node.
    Please modify your code as below
    CALL METHOD lr_root_node_info->add_new_child_node
         EXPORTING
           name                         = 'INPUT'
           is_mandatory = abap_true
           is_multiple                  = abap_false
           is_multiple_selection        = abap_false
    *      is_initialize_lead_selection = abap_false
         RECEIVING
           child_node_info              = lr_input_node_info.
    Hope this helps you.
    Regards,
    Rama

  • How can i put view All in bottom of the grid view?

    Hi All,
    I have created a sharepoint document library and uploaded documents to that library.
    After that i have bind that documents to gridview, now i want put view All in the bottom of the documents.
    View All---> if i click this, it will navigate to that sharepoint library.
    How can i put view All in bottom of the grid view.

    Hi Anil,
    You can add a button or hyperlink and initialize the redirect url with default view url of list as "oList.DefaultView.Url".
    Best Regards,
    Brij K
    Best Regards,
    Brij K
    http://bloggerbrij.blogspot.co.uk/

  • Binding parameters to dynamic VO with PL/SQL API call with no where clause

    Hi all,
    I am required to change exisiting queries to queries with "bind" parameters. Some of our VOs are dynamic and with PL/SQL api calls like below:
    String stmtStr = "selectXXX_API_UTILS.chk_urg_since_last_prg("
    + projectId + "," + PPCId + ",'XYZ_TASKS'," + taskId+ ")"
    +" from dual ";
    ViewObject tmpVO = transaction.createViewObjectFromQueryStmt(stmtStr);
    In this regard, I am unsure how to bind the PPCId and taskId parameters to the VO. setWhereClauseParams() would not work here as there is now where clause.
    Thanks in advance,
    Srini

    In case of preparedStatement, we mention bind parameters to be passed using "?". Then we pass paramters sequencially.
    But in the your case following is enough:
    int projectId = 100 ; (hardcoding values for example)
    int taskId = 500 ;
    String stmtStr = "selectXXX_API_UTILS.chk_urg_since_last_prg("
    + projectId + "," + PPCId + ",'XYZ_TASKS'," + taskId+ ")"
    +" from dual ";
    -Anand

  • Bind WPF grid to non-observable collection

    Hello,
    I have an object of MyClass, returned by business tier.
    MyClass has a property of type List, say
    class MyClass
    public string Name;
    public List<Whatever> Items;
    I want to bind that collection of Items to grid in WPF screen with two-way updates using MVVM.
    If I bind List<Whatever> via property, my grid does not reflect any changes to the underlying property b/c List does not support NotifyPropertyChanged.
    I create a new Observable Collection from  List<Whatever>, bind it to grid and it works fine. But now I have 2 instances of the same data in memory, one as List<Whatever> and one as ObservableCollection<Whatever>.
    Now, if I make changes to ObservableCollection via UI, it gets modified by framework, but I have to manually update List object with the same changes to keep them in sync, b/c after user is done with changes and wants to save modified MyClass, I need
    to make sure MyClass.Items has all the user's changes.
    My question is - isn't there a better way handle this situation than copying List to ObservableCollection and back?
    Can I bind List property directly to Grid and still have two-way updates out of box? Any suggestions?
    Thank you!
    Isolda

    Thanks for your replies. I did make public List<Whatever> Items into a property in my ViewModel, so that ViewModel looks like this
    class MyViewModel : INotifyPropertyChanged
        private MyClass _myClass = new MyClass();
        public string Name { get { return _myCLass.Name; } set{ _myClass.Name = value; }}
        public List<Whatever> Items { get { return _myClass.Items; } set { _myClass.Items = value;}}
    XAML is this
    <telerik:RadGridView ItemsSource="{Binding Items, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnSourceUpdated=True, NotifyOnTargetUpdated=True}" />
    Whenever I add items, I call NotifyPropertyChange("Items").
    Grid does not reflect changes to the List, unless I do something to the grid, like click to Sort the column.
    The second comment about changes to Whatever objects in the list - "Whatever" is a DTO object, really don't want to add any code to it... I think I'll just stick to copying from List to Observable collection and back, although I'm concerned
    about 2 times more memory.
    If I misunderstood your replies pls let me know what I'm missing.
    Thanks.
    Isolda

  • Input the data in to the grid without saving it to the  database

    <PRE lang=jsp id=pre2 style="MARGIN-TOP: 0px" nd="109"><%@ taglib uri="/WEB-INF/tags/datagrid.tld" prefix="grd" %>
    <%@ page import="java.sql.Connection" %>
    <%@ page import="java.sql.DriverManager" %>
    <%@ page import="java.sql.SQLException" %>
    <%@ page import="com.freeware.gridtag.*" %>
    <%
    int intCurr = 1;
    int intSortOrd = 0;
    String strTmp = null;
    String strSQL = null;
    String strSortCol = null;
    String strSortOrd = "ASC";
    boolean blnSortAsc = true;
    strSQL = "SELECT CLICORPORATION, CLICLIENT, CLIDESCRIPTION, " +
    "CLIENABLED, CLIUPDSTAMP FROM CLIENTMASTER ";
    Connection objCnn = null;
    Class objDrvCls = null;
    objDrvCls = Class.forName("oracle.jdbc.driver.OracleDriver");
    objCnn = DriverManager.getConnection("<A class=iAs style="FONT-WEIGHT: normal; FONT-SIZE: 100%; PADDING-BOTTOM: 1px; COLOR: darkgreen; BORDER-BOTTOM: darkgreen 0.07em solid; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" href="#" target=_blank itxtdid="3346226">jdbc</A>:oracle:thin:@Host:port:sid",
    "cashincpri", "cashincpri");
    if (objDrvCls != null) objDrvCls = null;
    strTmp = request.getParameter("txtCurr");
    try
    if (strTmp != null)
    intCurr = Integer.parseInt(strTmp);
    catch (NumberFormatException NFEx)
    strSortCol = request.getParameter("txtSortCol");
    strSortOrd = request.getParameter("txtSortAsc");
    if (strSortCol == null) strSortCol = "CLICLIENT";
    if (strSortOrd == null) strSortOrd = "ASC";
    blnSortAsc = (strSortOrd.equals("ASC"));
    %>
    <html>
    <head>
    <title>Grid Tag Demonstration</title>
    <link REL="StyleSheet" HREF="css/GridStyle.css">
    <script LANGUAGE="javascript">
    function doNavigate(pstrWhere, pintTot)
    var strTmp;
    var intPg;
    strTmp = document.frmMain.txtCurr.value;
    intPg = parseInt(strTmp);
    if (isNaN(intPg)) intPg = 1;
    if ((pstrWhere == 'F' || pstrWhere == 'P') && intPg == 1)
    alert("You are already viewing first page!");
    return;
    else if ((pstrWhere == 'N' || pstrWhere == 'L') && intPg == pintTot)
    alert("You are already viewing last page!");
    return;
    if (pstrWhere == 'F')
    intPg = 1;
    else if (pstrWhere == 'P')
    intPg = intPg - 1;
    else if (pstrWhere == 'N')
    intPg = intPg + 1;
    else if (pstrWhere == 'L')
    intPg = pintTot;
    if (intPg < 1) intPg = 1;
    if (intPg > pintTot) intPg = pintTot;
    document.frmMain.txtCurr.value = intPg;
    document.frmMain.submit();
    function doSort(pstrFld, pstrOrd)
    document.frmMain.txtSortCol.value = pstrFld;
    document.frmMain.txtSortAsc.value = pstrOrd;
    document.frmMain.submit();
    </script>
    </head>
    <body>
    <h2>Grid Example</h2>
    <form NAME="frmMain" METHOD="post">
    <grd:dbgrid id="tblStat" name="tblStat" width="100" pageSize="10"
    currentPage="<%=intCurr%>" border="0" cellSpacing="1" cellPadding="2"
    dataMember="<%=strSQL%>" dataSource="<%=objCnn%>" cssClass="gridTable">
    <grd:gridpager imgFirst="images/First.gif" imgPrevious="images/Previous.gif"
    imgNext="images/Next.gif" imgLast="images/Last.gif"/>
    <grd:gridsorter sortColumn="<%=strSortCol%>" sortAscending="<%=blnSortAsc%>"/>
    <grd:rownumcolumn headerText="#" width="5" HAlign="right"/>
    <grd:imagecolumn headerText="" width="5" HAlign="center"
    imageSrc="images/Edit.gif"
    linkUrl="javascript:doEdit('{CLICORPORATION}', '{CLICLIENT}')"
    imageBorder="0" imageWidth="16" imageHeight="16"
    alterText="Click to edit"/>
    <grd:textcolumn dataField="CLICLIENT" headerText="Client"
    width="10" sortable="true"/>
    <grd:textcolumn dataField="CLIDESCRIPTION" headerText="Description"
    width="50" sortable="true"/>
    <grd:decodecolumn dataField="CLIENABLED" headerText="Enabled" width="10"
    decodeValues="Y,N" displayValues="Yes,No" valueSeperator=","/>
    <grd:datecolumn dataField="CLIUPDSTAMP" headerText="Last Updated"
    dataFormat="dd/MM/yyyy HH:mm:ss" width="20"/>
    </grd:dbgrid>
    <input TYPE="hidden" NAME="txtCurr" VALUE="<%=intCurr%>">
    <input TYPE="hidden" NAME="txtSortCol" VALUE="<%=strSortCol%>">
    <input TYPE="hidden" NAME="txtSortAsc" VALUE="<%=strSortOrd%>">
    </form>
    </body>
    </html>
    <%
    try
    if (objCnn != null)
    objCnn.close();
    catch (SQLException SQLExIgnore)
    if (objCnn != null) objCnn = null;
    %>
    </PRE>
    by using this code we will get the gide.
    but the problem is when we are inserting the new record after click to save the record first saves the data in the Db and then it appears on the grid.
    Is it possible to do reverse of the above :
    first it comes to the grid and then after click to save it save to the database.
    please help me
    Regards,
    imran

    Hi Yamini,
    What do you mean by without query region here? Do you wish to implement the complete search/result functionality without using the Query page? Or your question already answered. Kindly confirm.
    Regards
    Sumit

  • Adding Data in the grid

    One thing I am finding a little awkward; Adding data in the grid. It would be nice to be able to use tab to get to the next cell. At present it just highlights the cell and typing doesn't do anything until the cell is clicked. Equally hitting return I would expect it to give me a new blank row. I would like to be able to add a couple of rows of data without resorting to using the mouse at each turn.
    Very good initial impressions though.

    Yes we should do this as it's what everyone will expect from Excel.
    -kris

  • How to change tempo without affecting the music (only the grid)

    This is a very basic problem. I have been laying songs (audio files) onto logic and recording vocals over them, and now that I am finished with the recording, i realize that in order to copy and paste the choruses EXACTLY throughout the songs, which can be quite arduous the way I have been trying to do it, one needs to have matched the proper tempo with the the music being used.
    I neglected to do this at the start of these projects, and it has come back to bite me because when I try to change the tempo now, it completely throws my vocals out of whack because my voice is off beat. This is where the problem lies. I know had I addressed this at the beginning, I would be smooth sailing.
    I also tried setting the tempo at the proper rate on a new logic project, but when I drag everything over from the original project, the same problem occurs.
    In reality, I need the grid to match up so I have the proper means to line up my vocals exactly so the choruses are consistent throughout the song (obviously I can do it manually in a way regular listeners might not notice, but Im dissatisfied with that, I want it to be perfect)
    Again, I know that if I had matched the tempo properly with the audio file (the music) at the beginning, there would be no problems, and I'd be able to record over it and then use the bars to align my vocals perfectly.
    If some one would be so kind as to get back to me on this, it would be highly appreciated

    You're close!
    1• Open the automation event list on a track that contains automation. You will now see what looks like a normal event list but it's displaying only the automation data on that track
    2• Click the hierarchy arrow to take you "up a level" so that the automation event list (AEL) now shows you the names of all of the automation regions within the (hidden) automation arrange page. What you'll see is a list of items all starting at bar 1 1 1 1 called "Automation". (If the position of the items is not 1 1 1 1, you have a problem. See below).
    3• Select All (CMD-A) and then use whatever method you prefer to SMPTE-lock them (menu item or key command)
    = OR =
    Do Step #1. Then hit CMD-1 to open a new Arrange window. When you do this right after opening an AEL you will see the automation arrange page. Move the AEL out of the way or simply close it. Then, similar to Step #3, select all of the automation regions in the automation arrange page (CMD-A) and SMPTE-lock them.
    Note: if your automation events are not all starting at 1 1 1 1 then it's an indication that your song's start marker was moved to before bar 1 and you're on your way to having a corrupted song.
    Final caveat: don't attempt to write new automation while the old automation data is SMPTE-locked. It'll create a nice lil' mess. So after you're done changing the tempo (or whatever your reason for SMPTE-locking regions and automation), the first thing you should do is unlock them both before proceeding with any additional recordings. It's very easy to forget that the automation data is locked because you can't see that it's in a locked state unless you're looking at the AEL or the automation arrange page.
    Message was edited by: iSchwartz

Maybe you are looking for