HOME NEW LISTING MOST POPULAR HIGHEST RATED SCRIPTS ADD SCRIPT DOWNLOADS FORUM Blog
 Search:     
TUTORIALS
 ASP.Net & C#
  ASP
  Perl and PHP
  Java Scripts
  C and C++
  Ajax Tutorials
  J2ee, J2Me, Java
  Python & Ruby Rail
  Crystal Report
  Sap
  CGI
  XML
  Cold Fusion & CFML
  HTML, DHTML & CSS
  Dreamweaver
  FLASH
  Photoshop/Web Designing
  Tools & Utilities
  Oracle/D2K
  Sql Server
  MySql
  Domain Name Registration
  Remotely Hosting
  Web/Server Application
  Hotel Marketing
  Internet and Law
  Search Engine Optimization/SEO
  E-Commerce
  Interview Questions
Hacked by Swan >> Hacked by Swan >> Hacked by Swan
How to get the index of the SelectedRow in a DataGridView?
Discription:

   below codes show how to do that private void dataGridView1_SelectionChanged(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count == 1) { txtXML.Text = dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Cells["CustomerCode"].Value.ToString(); } }
1.0Plateform(s): WindowUpdate: 5/26/2008Vistor Rating: 2Rating: 1
  Copyright 2000-2006 © SoloScript.com, All rights reserved.