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

  • SEARCH
  • Home
  • 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 6853977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:34:36+00:00 2026-05-27T01:34:36+00:00

I am using devexpress asp:GridView in asp.net with two columns: status and percentage The

  • 0

I am using devexpress asp:GridView in asp.net with two columns: “status” and “percentage”

The column “status” is a GridViewDataComboBoxColumn which contain two values: “progress” and “completed”

The column “percentage” is a GridViewDataColumn.

What I want to do is:

  • If I select completed in status then the percentage should display the text ‘100’.
  • but I don’t know how to trigger combobox events which is present inside asp:GridView

The code I have (so far) is:

<dxwgv:ASPxGridView ID="gridviewTaskProg" runat="server" 
    AutoGenerateColumns="False" DataSourceID="SqlDataSourceTasks" 

    onbeforeperformdataselect="gridviewTaskProg_BeforePerformDataSelect" 
    onrowupdating="gridviewTaskProg_RowUpdating" KeyFieldName="intProgressID" 
    oninitnewrow="gridviewTaskProg_InitNewRow" 
    onrowinserting="gridviewTaskProg_RowInserting" 
    oncancelrowediting="gridviewTaskProg_CancelRowEditing" 
    onstartrowediting="gridviewTaskProg_StartRowEditing">
    <Columns>
        <dxwgv:GridViewCommandColumn VisibleIndex="0">
            <EditButton Visible="True">
            </EditButton>
        </dxwgv:GridViewCommandColumn>
        <dxwgv:GridViewDataDateColumn FieldName="StartDateTime" VisibleIndex="1">
            <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy hh:mm tt" 
                EditFormat="Custom" EditFormatString="dd/MM/yyyy hh:mm tt"></PropertiesDateEdit>
        </dxwgv:GridViewDataDateColumn>
        <dxwgv:GridViewDataDateColumn FieldName="EndDateTime" VisibleIndex="2">
            <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy hh:mm tt" 
                EditFormat="Custom" EditFormatString="dd/MM/yyyy hh:mm tt" 
                dateonerror="Today"></PropertiesDateEdit>
        </dxwgv:GridViewDataDateColumn>
        <dxwgv:GridViewDataSpinEditColumn FieldName="Percentage" VisibleIndex="3">
            <PropertiesSpinEdit DisplayFormatString="g" NumberFormat="Custom"></PropertiesSpinEdit>
        </dxwgv:GridViewDataSpinEditColumn>
        <dxwgv:GridViewDataComboBoxColumn FieldName="Status" VisibleIndex="4">
            <PropertiesComboBox ValueType="System.String"><Items><dxe:ListEditItem Text="Progress" Value="Progress" /><dxe:ListEditItem Text="Completed" Value="Completed"/></Items></PropertiesComboBox>
            </dxwgv:GridViewDataComboBoxColumn>
        <dxwgv:GridViewDataMemoColumn Caption="Remarks" FieldName="Remarks" 
            VisibleIndex="5">
        </dxwgv:GridViewDataMemoColumn>
    </Columns>
</dxwgv:ASPxGridView>
  • 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-27T01:34:37+00:00Added an answer on May 27, 2026 at 1:34 am

    How can i change the readonly property of ‘percentage’?

    @Filip: Exactly!

    <ClientSideEvents SelectedIndexChanged="function(s, e) { 
            if(s.GetValue() == 'Completed') {
                var txtEditor = grid1.GetEditor('Percentage');
                txtEditor.SetValue(100);
                txtEditor.SetEnabled(false);
            }
          }" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using ASP.NET 3.5, LLBLGenPro 3.0, and DevExpress 10.1.7. I have an ASPxGridView with
I have an ASP .net C# project using a EntityDataSource with a DevExpress aspxGridView
Has anybody had any hands-on experience using Devexpress ASP.NET components with Delphi Prism? At
I am currently developing a C# based asp.net page. I am using the Devexpress
Iam using Devexpress aspxgridview control in asp.net. I want to reload the page on
I am using DevExpress ASPXPivotGrid control for my ASP.NET site.I am also using DevExpress
I am using DevExpress v10. I have an ASP.NET page with AspxPopupControl. The AspxPopupControl
Currently I am designing a website using asp.net 3.5, devexpress controls, SQL server. There
Is there any example for a Real Time Chart using the DexExpress in ASP.Net?
I'm using devexpress and i have two problems. My insert stored procedure work fine.

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.