[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

CurrentRowIndex DataGridview

Posted on 2006-11-27
1
Medium Priority
?
778 Views
Last Modified: 2012-06-21
Instead of having my rowIndex be "2", how do i set it  do be the current row?

this.myDataGridview.CurrentCell = this.assingmentListDataGridView[8, 2];

would like something like

this.myDataGridview.CurrentCell = this.assingmentListDataGridView[8, myDataGridview.CurrentRow];

this.assingmentListDataGridView.CurrentCell.Value = "pizza is great";
0
Comment
Question by:JasonWinn
1 Comment
 
LVL 6

Accepted Solution

by:
e1v earned 1600 total points
ID: 18026057
you can do it like this

this.myDataGridview.CurrentCell = this.assingmentListDataGridView[8, myDataGridview.CurrentCell.RowIndex];
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month18 days, 23 hours left to enroll

834 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