Solved

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

Posted on 2009-07-15
2
942 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
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.

773 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