Click here to Skip to main content
15,891,423 members
Home / Discussions / C#
   

C#

 
QuestionProblem getting text from ListView in another app Pin
Farhan Ali3-Apr-07 19:25
Farhan Ali3-Apr-07 19:25 
AnswerRe: Problem getting text from ListView in another app Pin
Christian Graus3-Apr-07 19:36
protectorChristian Graus3-Apr-07 19:36 
GeneralRe: Problem getting text from ListView in another app Pin
Farhan Ali3-Apr-07 21:00
Farhan Ali3-Apr-07 21:00 
QuestionHow to Open Control Panel,Entire Network,Printer and Fax in Different process Pin
Sanjib Raj3-Apr-07 19:21
Sanjib Raj3-Apr-07 19:21 
QuestionHow to display application icon when the instances are grouped in the taskbar Pin
Shaurya_Rastogi3-Apr-07 18:55
Shaurya_Rastogi3-Apr-07 18:55 
QuestionHow to programming C# with PCI video record device Pin
vuong van thuan3-Apr-07 17:02
vuong van thuan3-Apr-07 17:02 
AnswerRe: How to programming C# with PCI video record device Pin
Christian Graus3-Apr-07 17:33
protectorChristian Graus3-Apr-07 17:33 
GeneralRe: How to programming C# with PCI video record device Pin
vuong van thuan3-Apr-07 23:21
vuong van thuan3-Apr-07 23:21 
GeneralRe: How to programming C# with PCI video record device Pin
Christian Graus4-Apr-07 1:52
protectorChristian Graus4-Apr-07 1:52 
GeneralRe: How to programming C# with PCI video record device Pin
vuong van thuan4-Apr-07 17:09
vuong van thuan4-Apr-07 17:09 
QuestionUnit Testing of an Interface? Pin
sreecahitu3-Apr-07 15:44
sreecahitu3-Apr-07 15:44 
QuestionRe: Unit Testing of an Interface? Pin
Vikram A Punathambekar3-Apr-07 18:11
Vikram A Punathambekar3-Apr-07 18:11 
AnswerRe: Unit Testing of an Interface? Pin
KevinMac3-Apr-07 18:38
KevinMac3-Apr-07 18:38 
AnswerRe: Unit Testing of an Interface? Pin
KevinMac3-Apr-07 18:19
KevinMac3-Apr-07 18:19 
QuestionSQL DataSet Pin
thecodedemon3-Apr-07 14:17
thecodedemon3-Apr-07 14:17 
Questionhow to embedd exe file into my app and start it on the fly ? Pin
hdv2123-Apr-07 12:58
hdv2123-Apr-07 12:58 
AnswerRe: how to embedd exe file into my app and start it on the fly ? Pin
teejayem3-Apr-07 13:58
teejayem3-Apr-07 13:58 
QuestionScrollbarposition of richtextbox Pin
nightrider133-Apr-07 12:26
nightrider133-Apr-07 12:26 
AnswerRe: Scrollbarposition of richtextbox Pin
mav.northwind3-Apr-07 19:09
mav.northwind3-Apr-07 19:09 
QuestionSpeech Recognition problem once using Windows Vista? Pin
Khoramdin3-Apr-07 11:25
Khoramdin3-Apr-07 11:25 
AnswerRe: Speech Recognition problem once using Windows Vista? Pin
Christian Graus3-Apr-07 12:38
protectorChristian Graus3-Apr-07 12:38 
GeneralRe: Speech Recognition problem once using Windows Vista? Pin
Vikram A Punathambekar3-Apr-07 18:13
Vikram A Punathambekar3-Apr-07 18:13 
GeneralRe: Speech Recognition problem once using Windows Vista? Pin
Christian Graus3-Apr-07 19:12
protectorChristian Graus3-Apr-07 19:12 
GeneralRe: Speech Recognition problem once using Windows Vista? Pin
Khoramdin3-Apr-07 20:23
Khoramdin3-Apr-07 20:23 
QuestionHow to get the row number from the DataTable.Row.Find() method? Pin
joaquimc3-Apr-07 9:52
joaquimc3-Apr-07 9:52 
Hello,

I'm new to C# development and i'm stucked with one problem with the DataTable.Row.Find() method:

I have a DataSet called: 'MinhaTabela', and a DataTable called: 'Cpostais'.
This DataTable has 2 columns: 'Cpostal', and 'Localidade'.

I wrote the following code to find a record on the DataTable:

<br />
// Defining the key         <br />
CPostais.PrimaryKey = new DataColumn[] { CPostais.Columns["cpostal"] };<br />
<br />
// Use that key to search the record with the field 'Cpostal' equal to '3000-001'<br />
DataRow RegistoEncontrado = CPostais.Rows.Find("3000-001");<br />
<br />
// If the row was found<br />
if (RegistoEncontrado != null)<br />
{<br />
   // Now my problem:<br />
   // The following line of code dont work, <br />
   // because the DataRow object doesn't have a 'ActualRow' property<br />
   // but, what is the property where i can read that value?<br />
   int ROW_NUMBER = RegistoEncontrado.ActualRow; <br />
      <br />
   // If i found the row number then i would do this...<br />
   Grid2.CurrentCell = Grid2.Rows[ROW_NUMBER].Cells["localidade"];<br />
   Grid2.BeginEdit(false);<br />
<br />
}<br />
<br />
else<br />
<br />
// Row not found<br />
{<br />
   MessageBox.Show("Record not found...");<br />
}<br />


Does anyone knows how to get the row number after i find the respective record?

TIA,
Joaqui,

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.