Windows Develop Bookmark and Share   
 index > Windows Forms General > Windows Datagrid selectedindex
 

Windows Datagrid selectedindex

I am using a windows(not the web control)datagrid control. I want to use the selected row, but do not find a selectedindex property. How will I go about using/processingdata in a selected row. This is very straight forward with the web control. Am I missing something? thanks in advanced
cbeasle1  Thursday, September 28, 2006 5:58 PM
Ok, I found currentrowindex property, but seems to always be 0. I am testing it in a double click event. I am looking to double click the grid and grab a row and display it in a editing area.
cbeasle1  Thursday, September 28, 2006 6:45 PM
Solution is to use the dg.currentcell.rownumber.
cbeasle1  Thursday, September 28, 2006 7:05 PM

I am facing same problem.

Ihave code like this

DataGrid datagridObject;

datagridObject.rows[0].select();

but it is giving me exception

Please tell me how toselect row.Or any other way to selectthe row.

hemant Pawar  Wednesday, October 04, 2006 2:03 PM

You can use google to search for other answers

Custom Search

More Threads

• How to make button in windows form perform actionlistener like in Java
• Deployment project Errors on 98
• Get Menu String from owner Draw menu.
• Help regarding the serial port communication between 2 PCs on wince emulator
• How to Set Up a Class to Hold "Application" Variables
• open with in vb2005
• I need a free Tabbed MDI control
• using String.Split()
• Why would I get "Incorrect syntax near ')'" on the last line of this query code?
• .Net Remoting