Click here to Skip to main content
16,003,404 members
Home / Discussions / C#
   

C#

 
GeneralRe: Datagrids - Selecting Rows Pin
Heath Stewart4-Aug-03 6:05
protectorHeath Stewart4-Aug-03 6:05 
GeneralRe: Datagrids - Selecting Rows Pin
MrEyes5-Aug-03 0:42
MrEyes5-Aug-03 0:42 
Well after some playing I came up with this piece of rather convoluted code, but it does what I need. Here it is just incase anybody else is looking for something similar in the future :

//item (string) - value to be selected
CurrencyManager cm = (CurrencyManager)dgData.BindingContext[dgData.DataSource];
		
for (int i = 0; i < cm.Count; i++)
{
  DataRowView drv = (DataRowView)cm.List[i];
			
  if (item == drv.Row["CDBNO"].ToString())
  {
    dgData.CurrentRowIndex = i;
    dgData.Select(i);
  }
}

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 
GeneralRe: Referencing a reference Pin
Heath Stewart4-Aug-03 6:34
protectorHeath Stewart4-Aug-03 6:34 
QuestionHow to get system-wide cursor status in c#? Pin
CyberKewl3-Aug-03 22:02
CyberKewl3-Aug-03 22:02 
AnswerRe: How to get system-wide cursor status in c#? Pin
J. Dunlap3-Aug-03 22:34
J. Dunlap3-Aug-03 22:34 
GeneralRe: How to get system-wide cursor status in c#? Pin
CyberKewl4-Aug-03 4:25
CyberKewl4-Aug-03 4:25 
GeneralAbout some syntax Pin
FlyingDancer3-Aug-03 21:40
FlyingDancer3-Aug-03 21:40 
GeneralRe: About some syntax Pin
Alexander Kojevnikov3-Aug-03 22:41
Alexander Kojevnikov3-Aug-03 22:41 
GeneralRe: About some syntax Pin
FlyingDancer3-Aug-03 23:03
FlyingDancer3-Aug-03 23:03 

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.