Click here to Skip to main content
15,889,651 members
Home / Discussions / C#
   

C#

 
GeneralRe: GetCursorInfo in C#? Pin
Heath Stewart5-Aug-03 17:03
protectorHeath Stewart5-Aug-03 17:03 
GeneralRe: GetCursorInfo in C#? Pin
CyberKewl6-Aug-03 0:47
CyberKewl6-Aug-03 0:47 
GeneralRe: GetCursorInfo in C#? Pin
Heath Stewart6-Aug-03 4:28
protectorHeath Stewart6-Aug-03 4:28 
GeneralRe: GetCursorInfo in C#? Pin
CyberKewl6-Aug-03 14:16
CyberKewl6-Aug-03 14:16 
GeneralDatagrids - Selecting Rows Pin
MrEyes4-Aug-03 3:02
MrEyes4-Aug-03 3:02 
GeneralRe: Datagrids - Selecting Rows Pin
Kannan Kalyanaraman4-Aug-03 5:19
Kannan Kalyanaraman4-Aug-03 5:19 
GeneralRe: Datagrids - Selecting Rows Pin
MrEyes4-Aug-03 5:22
MrEyes4-Aug-03 5:22 
GeneralRe: Datagrids - Selecting Rows Pin
Heath Stewart4-Aug-03 6:05
protectorHeath Stewart4-Aug-03 6:05 
There's many ways. If your DataGrid is not sorted and hasn't been sorted, you can use a myriad of method to get the index of the row in the data source, then use that in DataGrid.Select(). If you knew the index of the column for the key, you could use the DataGrid.Item and loop through rows (using for instead of foreach so you can get the index from, say, i's current value when you find what you're looking for). It's all in the documentation. Just spend a little time researching what's available before jumping into it. You can use members on DataGrid, the DataSet, a DataRow or DataRowView, or even use a strongly-typed DataSet which provides you with additional options.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Datagrids - Selecting Rows Pin
MrEyes5-Aug-03 0:42
MrEyes5-Aug-03 0:42 
GeneralRe: Datagrids - Selecting Rows Pin
Heath Stewart5-Aug-03 5:34
protectorHeath Stewart5-Aug-03 5:34 
Generalcom object, [out] params (pointers to values), C# Pin
alma4-Aug-03 1:55
alma4-Aug-03 1:55 
GeneralRe: com object, [out] params (pointers to values), C# Pin
Alexander Kojevnikov4-Aug-03 2:56
Alexander Kojevnikov4-Aug-03 2:56 
GeneralRe: com object, [out] params (pointers to values), C# Pin
alma4-Aug-03 3:17
alma4-Aug-03 3:17 
GeneralRe: com object, [out] params (pointers to values), C# Pin
Alexander Kojevnikov4-Aug-03 3:27
Alexander Kojevnikov4-Aug-03 3:27 
GeneralRe: com object, [out] params (pointers to values), C# Pin
alma4-Aug-03 3:56
alma4-Aug-03 3:56 
GeneralReferencing a reference Pin
Martin Cross3-Aug-03 23:22
Martin Cross3-Aug-03 23:22 
GeneralRe: Referencing a reference Pin
Furty4-Aug-03 0:46
Furty4-Aug-03 0:46 
GeneralRe: Referencing a reference Pin
Martin Cross4-Aug-03 0:55
Martin Cross4-Aug-03 0:55 
GeneralRe: Referencing a reference Pin
Furty4-Aug-03 9:16
Furty4-Aug-03 9:16 
GeneralRe: Referencing a reference Pin
Martin Cross4-Aug-03 22:13
Martin Cross4-Aug-03 22:13 
GeneralRe: Referencing a reference Pin
Furty5-Aug-03 1:02
Furty5-Aug-03 1:02 
GeneralRe: Referencing a reference Pin
Martin Cross5-Aug-03 3:07
Martin Cross5-Aug-03 3:07 
GeneralRe: Referencing a reference Pin
Furty5-Aug-03 14:10
Furty5-Aug-03 14:10 
GeneralRe: Referencing a reference Pin
Heath Stewart4-Aug-03 6:11
protectorHeath Stewart4-Aug-03 6:11 
GeneralRe: Referencing a reference Pin
Martin Cross4-Aug-03 6:24
Martin Cross4-Aug-03 6:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.