in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

AspxGridview

Last post 11/19/2008 8:38 AM by vijayr raghavendran. 6 replies.
Page 1 of 1 (7 items)
Sort Posts:
Previous Next
  • 11/7/2008 11:39 AM

    Crying [:'(] AspxGridview

    hi 

    i am using devexpress for my projects.its working fine in my project.

    i got one problem while using footer template,

    i have one footer template in the DataGrid , its containing a AspxCombo Box . here i need to one dataset in the  DataGrid and combox also should be different  data.i done it code,but dataGrid is working fine but  ComboBox should not displaying any values.

    my code is for dataGrid

    if(!postback)

    {

    bindDataGrid()

    PopulateDropDown()

    }

    private void bindDataGrid()

    {

    dataGrid1.dataSource = ds;

    dataGrid1.dataBind();

    }

    private void PopulateDropDown()

    {

     

    ArrayList arList = new ArrayList();

     

    DevExpress.Web.ASPxEditors. ASPxComboBox ddl = ((DevExpress.Web.ASPxEditors.ASPxComboBox)UserGrid.FindFooterCellTemplateControl(UserGrid.Columns[1], "ddlUsers"));

     

     

     

    for (int i = 0; i <= arList.Count - 1; i++)

    {

     

    ListEditItem li = new ListEditItem("vijayr",raghavendran")

    ddl.Items.add(li);

    }

    after page load its not displaying in the my dropdown. how can i make it display in the footer Template.

    Regards

    Vijay r

     

  • 11/7/2008 3:53 PM In reply to

    Re: AspxGridview

    Hi Vijayr,

    It maybe your databinding call. Try the approach like the one in the pageload method of this sample: How to create a grid control programmatically

  • 11/10/2008 5:13 AM In reply to

    Re: AspxGridview

     

    Hi Mehul Harry,

    nice Sample,but its not good for my requriment. i can't able to call PopulateDropDown() in else part.it's not user friendly.see its working good while i am doing debugging. i can't figure out where the dropdown is clearing after page_load event.my Recuriment is "i have page call UserDetails.it's shows the User Details in that page.

    so i have put the Grid for showing User Details from the DataBase, and also i have added Footer Template( its having there dropdowns). here Grid Contains one dataSet and the DropDowns also contains  another dataSet.

    i have mentioned my code in Last Email. its filling in the Page_load event but its will cleared some where else.i can't figure out where it is clearing.

    it's only working in Postback method is true.i think its not a bug, we need to handle some event or enable some properites, what is that ?

    hey its my urgent requiment.how to do this " in the page  load i have to fill two thing

    1) grid

    2)dropdowns

  • 11/10/2008 2:43 PM In reply to

    Re: AspxGridview

    Hi Vijay,

    Use the embedded ASPxCombobox's Load event to solve this issue:

     

    protected void ASPxComboBox1_Load(object sender, EventArgs e)
    {
        ArrayList arList = new ArrayList();
        arList.Add("one");
        arList.Add("two");
        arList.Add("three");
        arList.Add("four");
        ASPxComboBox ddl = sender as ASPxComboBox;
        ddl.DataSource = arList;
        ddl.DataBind();
    }

     

  • 11/12/2008 2:54 PM In reply to

    Re: AspxGridview

     

    sorry Sad its also not working.help me

     

  • 11/12/2008 3:14 PM In reply to

    Re: AspxGridview

    Answer

    Here is the sample I used:  ASPxComboBox1_Load.zip

  • 11/19/2008 8:38 AM In reply to

    Re: AspxGridview

     Yes i am happy with this.thank u .its working fine.

     

    ragards

    Vijay

Page 1 of 1 (7 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED