WebGrid: How to change a cell, based on the value in a dropdown?

1 reply. Last post: June 8, 2011 2:23 PM by Martin Lie
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Jim DresserMember

I have a WebGrid that has a dropdown list column and a text column:

              <ISWebGrid:WebGridColumn Caption="Rule" DataMember="Rule" Name="Rule" Width="100px" ColumnType="Text"
                EditType="DropdownList">
                <ValueList DataSourceID="SqlDataSource_Rule" DataTextField="DataText" DataValueField="DataValue" />
              </ISWebGrid:WebGridColumn>
              <ISWebGrid:WebGridColumn Caption="Threshold" DataMember="Threshold" Name="Threshold" Width="100px">

When the user makes a selection in the dropdown list, I want the value in the second column to change.

Example:   The dropdown list contains 2 items: 'KPH Limit' and 'MPH Limit'.   If the user changes the dropdown to 'KPH Limit', I want the second column to change to "100".   If the user changes the dropdown to 'MPH Limit', I want the second column to change to "65".

How do I detect when the value in the dropdown list has changed?

Thanks,

Jim


All times are GMT -5. The time now is 5:49 AM.
Previous Next