Solved

CurrentRowIndex DataGridview

Posted on 2006-11-27
1
773 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 6

Accepted Solution

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

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

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
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
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

749 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