Solved

How to Change UltraWebGrid Cell Value from a Menu Control on the same page

Posted on 2009-07-15
2
934 Views
Last Modified: 2013-11-15
I have an ultrawebgrid with a "status" column.  I want the user to be able to change the value of the Status cell in the most recently active row by clicking a menu option like "Completed" or "Cancelled."  The problem is that once I click on the menu the UltraGrid is no longer active and I can't figure out how to determine the index value of the most recently active row.  Once I have the index value I hope to do something like Me.UltraGrid1.Rows(index value).Cells(3).Value = "Completed."  I am also aware that I may need to store the activerow value somewhere else and access it from the menu code.

Please help me!!
0
Comment
Question by:ClayRankin
2 Comments
 
LVL 2

Accepted Solution

by:
Moed earned 250 total points
ID: 24929329
Just because the grid is not active doesn't mean there isn't a row active.  By default if the grid has at least 1 row then there is an active row object.  you should be able to use the gridname.activerow object to get to the row.

gridname.activerow.cells(3).value =  value
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now