Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6144179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:36:53+00:00 2026-05-23T18:36:53+00:00

Hi I have a gridcontrol, which includes three columns: column1, column2 and column 3.

  • 0

Hi I have a gridcontrol, which includes three columns: column1, column2 and column 3. Column2 and Column3 are repository comboBox1 and repository comboBox2: repcomboBox 1 has a data source of string type list and repcomboBox2 has a data source of int type list.

My grid control also has a data source.

I hope to implement the following function: when stringA is selected in repcomboBox1, the value in repcomboBox2 will be default to intA.

I try the following code:

    private void repoCombo1_EditValueChanged(object sender, EventArgs e)
    {
        GridView view = gridControl1.FocusedView as GridView;
        string format = gridView1.GetFocusedRowCellValue("field2Name").ToString();
        if (format.Equals(stringA))
        {
            gridView1.SetRowCellValue(gridView1.FocusedRowHandle, view.Columns.ColumnByFieldName("field3Name"), intA);
        }
    }

For example, if in rowX the current value in repcomboBox1 is stringB, I selected stringA instead of stringB, I debug into the code and find ” string format = gridView1.GetFocusedRowCellValue(“field2Name”).ToString();” set format as “stringB” other than “stringA” which I expect. How could I get the newly selected value in the repository comboBox? Why it doesn’t change? Thanks a lot!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:36:53+00:00Added an answer on May 23, 2026 at 6:36 pm

    You should use the following code for this purpose:

    object value = (sender as BaseEdit).EditValue;
    if(value != null)
      string format = value.ToString();        
      if (format.Equals(stringA))        {            
        gridView1.SetRowCellValue(gridView1.FocusedRowHandle, view.Columns.ColumnByFieldName("field3Name"), intA);        
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a GridControl view which is being populated with one column as a
I currently have the following XAML for my Grid control: <dxg:GridControl x:Name=DXGrid> <dxg:GridControl.Columns> <dxg:Column
I have a gridcontrol and there is a column named Accepted, a RepositoryItemCheckEdit is
I currently have a DevExpress GridControl where one of the columns have a GridLookUpEdit
I have a GridControl which I populate using a BackgroundWorker . Then I'm using
I have a GridControl on my windowsform. On a column, I want to show
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I have an ActiveX control (written in Delphi) which I want to host in
I am using the silverlight 4 toolkit gridcontrol and I'm using auto generated columns.
I have the following C# code which logs the user's url in a cookie.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.