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
Solved

CurrentRowIndex DataGridview

Posted on 2006-11-27
1
772 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 400 total points
ID: 18026057
you can do it like this

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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 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