Click here to Skip to main content
16,006,845 members
Home / Discussions / C#
   

C#

 
GeneralRe: Form.Close() Pin
Nicholas Cardi20-Sep-04 4:50
Nicholas Cardi20-Sep-04 4:50 
GeneralRe: Form.Close() Pin
exhaulted20-Sep-04 6:16
exhaulted20-Sep-04 6:16 
GeneralRe: Form.Close() Pin
Nicholas Cardi20-Sep-04 7:59
Nicholas Cardi20-Sep-04 7:59 
GeneralRe: Form.Close() Pin
Nicholas Cardi20-Sep-04 8:07
Nicholas Cardi20-Sep-04 8:07 
GeneralData Table From DataRow[] Pin
sreejith ss nair19-Sep-04 22:50
sreejith ss nair19-Sep-04 22:50 
GeneralRe: Data Table From DataRow[] Pin
Sendilkumar.M20-Sep-04 1:52
Sendilkumar.M20-Sep-04 1:52 
GeneralRe: Data Table From DataRow[] Pin
sreejith ss nair20-Sep-04 17:35
sreejith ss nair20-Sep-04 17:35 
GeneralRe: Data Table From DataRow[] Pin
Sendilkumar.M20-Sep-04 18:27
Sendilkumar.M20-Sep-04 18:27 
Hi Sreejith

There is no other way.But we can minimize the work in iteration.


SqlConnection con=new SqlConnection(@"Data Source=YOURSERVER\INSTANCENAME;Initial Catalog=Northwind;UID=sa; PWD=sa;");

con.Open();

SqlDataAdapter adpt=new SqlDataAdapter("select OrderID,CustomerID,EmployeeID from orders",con);

DataTable dt1=new DataTable();

adpt.Fill(dt1);

DataRow[] dr=dt1.Select("customerid='vinet'");

DataTable dt2=new DataTable();


for(int i=0;i<dr.GetLength(0);i++)
{

dt2.ImportRow(dr[i]);

}

int a=dt2.Rows.Count;

------------------------------------

try this.

---------------------------


M.Sendilkumar
TVS Infotech Ltd
Chennai
Generalmultiple selection in datagrid Pin
Sudee19-Sep-04 19:47
Sudee19-Sep-04 19:47 
GeneralRe: multiple selection in datagrid Pin
sreejith ss nair19-Sep-04 20:27
sreejith ss nair19-Sep-04 20:27 
GeneralRe: multiple selection in datagrid Pin
Sudee19-Sep-04 21:15
Sudee19-Sep-04 21:15 
GeneralRe: multiple selection in datagrid Pin
sreejith ss nair19-Sep-04 21:35
sreejith ss nair19-Sep-04 21:35 
GeneralRe: multiple selection in datagrid Pin
Sudee19-Sep-04 23:28
Sudee19-Sep-04 23:28 
QuestionHow to detect &quot;play some particular .wav file&quot; event? Pin
RodionMrt19-Sep-04 15:09
RodionMrt19-Sep-04 15:09 
AnswerRe: How to detect &quot;play some particular .wav file&quot; event? Pin
Christian Graus19-Sep-04 16:00
protectorChristian Graus19-Sep-04 16:00 
GeneralThats easy, thanks! ) Pin
RodionMrt19-Sep-04 16:31
RodionMrt19-Sep-04 16:31 
GeneralPasting to anbd from clipboard Pin
RomanD19-Sep-04 13:55
RomanD19-Sep-04 13:55 
GeneralRe: Pasting to anbd from clipboard Pin
Nick Parker19-Sep-04 17:05
protectorNick Parker19-Sep-04 17:05 
GeneralRe: Pasting to anbd from clipboard Pin
Anonymous/RomanD19-Sep-04 18:01
sussAnonymous/RomanD19-Sep-04 18:01 
GeneralRe: Pasting to anbd from clipboard Pin
mav.northwind19-Sep-04 22:28
mav.northwind19-Sep-04 22:28 
GeneralUsing WinAPI Pin
busio19-Sep-04 9:44
busio19-Sep-04 9:44 
GeneralRe: Using WinAPI Pin
S Sansanwal19-Sep-04 11:15
S Sansanwal19-Sep-04 11:15 
Generalclickety--Re: Using WinAPI Pin
Jerry Hammond19-Sep-04 17:18
Jerry Hammond19-Sep-04 17:18 
GeneralRe: Using WinAPI Pin
Anonymous20-Sep-04 1:17
Anonymous20-Sep-04 1:17 
GeneralWinforms: ListView: getting the label edit control Pin
peterchen19-Sep-04 9:10
peterchen19-Sep-04 9:10 

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.