This is a migrated thread and some comments may be shown as answers.

filter combobox data binding

0 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kod
Top achievements
Rank 1
Kod asked on 27 Nov 2017, 11:25 AM

Hello,

I am using below code block to bind filter combobox but the not able to bind data to combobox. can anyone help me in this?

 

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
       {
           if (e.Item is GridFilteringItem)
           {               
               GridFilteringItem item = (GridFilteringItem)e.Item;
               RadComboBox combo = (RadComboBox)item.FindControl("RadComboboxName");
               combo.DataSource = Data(0,0).DefaultView.ToTable(true, "Name");
               combo.DataTextField = "Name";
               combo.DataValueField = "Name";
           }
       }

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Kod
Top achievements
Rank 1
Share this question
or