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

gridviewcombobox filtering

3 Answers 125 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Teoman
Top achievements
Rank 1
Teoman asked on 22 May 2010, 10:34 AM
Hi,
I have combobox and textbox in my grid and i have 2 tables which stores bank name in the 1st table and the bank account number in the second table.i want that when i select bank name in the combobox it will shows me the account number in the gridviewtext?

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 27 May 2010, 07:17 AM
Hi Teoman,

As far as I understand you want to change a cell value based on another cell value. If this is the case, you can handle the ValueChanged event. Please consider this sample:

void radGridView1_ValueChanged(object sender, EventArgs e)
{
    RadComboBoxEditor editor = sender as RadComboBoxEditor;
    if (editor != null)
    {
        int value = (int)editor.Value;
        this.radGridView1.CurrentRow.Cells["Value"].Value = value;
    }
}

I hope this helps.

 

Kind regards,
Jack
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Husam Al Madain
Top achievements
Rank 1
answered on 23 Jun 2010, 09:35 AM

I have the same case but the difference that I need to load another combobox in the same row

Depending on the selected value in the first combobox

For example :

The first combobox is Banks

The second Combo is Branches

 

When I select any bank in the grid I want to load the assigned Branches to that bank only

Which means every Branch combobox in each row will have Different Values Loaded depending on the bank selected

Please Reply as soon as possible

Thank you so much

0
Nikolay
Telerik team
answered on 30 Jun 2010, 12:38 PM
Hi Husam Al Madain,

Thank you for the question.

Please refer to the following forum thread which concerns the same topic:
http://www.telerik.com/community/forums/winforms/gridview/cascading-comboboxes-in-radgridview.aspx

In case you need a quicker response, please use our support ticketing system. The priority of the support ticket is higher that the priority of the forum threads and the tickets are reviewed according to the license that you have.

If you need any additional assistance, feel free to contact us.

Best wishes,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Teoman
Top achievements
Rank 1
Answers by
Jack
Telerik team
Husam Al Madain
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or