Click here to Skip to main content
16,010,650 members
Home / Discussions / C#
   

C#

 
AnswerRe: how can we run a program pernemently on our desktop? Pin
malikjhangirahmed@hotmail.com2-Jun-06 21:37
malikjhangirahmed@hotmail.com2-Jun-06 21:37 
Questionlearning C# - new operator - arrays Pin
venkat4562-Jun-06 16:46
venkat4562-Jun-06 16:46 
AnswerRe: learning C# - new operator - arrays Pin
leppie2-Jun-06 20:50
leppie2-Jun-06 20:50 
GeneralRe: learning C# - new operator - Generics - arrays Pin
venkat4563-Jun-06 3:43
venkat4563-Jun-06 3:43 
GeneralRe: learning C# - new operator - Generics - arrays Pin
S. Senthil Kumar4-Jun-06 20:49
S. Senthil Kumar4-Jun-06 20:49 
Questionc# userControl problem Pin
xxxpt2-Jun-06 15:28
xxxpt2-Jun-06 15:28 
QuestionProblem figuring out DataGridView Pin
PyroManiak2-Jun-06 13:34
PyroManiak2-Jun-06 13:34 
AnswerRe: Problem figuring out DataGridView Pin
kjosh2-Jun-06 16:36
kjosh2-Jun-06 16:36 
Hi,
DataSet ds;
DataViewManager dsview;
In the form_load write this:
string constr = "Data Source=KALPANA\\KAL; Trusted_Connection = yes;Database=Northwind";
SqlConnection con = new SqlConnection(constr);
SqlDataAdapter da1 = new SqlDataAdapter("SELECT * FROM category", con);
ds = new DataSet("category");
da1.TableMappings.Add("Table", "category");
da1.Fill(ds);


SqlDataAdapter da2 = new SqlDataAdapter("SELECT * FROM item", con);
da2.TableMappings.Add("Table", "item");
da2.Fill(ds);
string dt = "";
for (int i = 0; i < ds.Tables.Count; i++)
{
dt += "Table Mappings" + i.ToString() + " " + ds.Tables[i].ToString() + " ";
}
//MessageBox.Show(dt);

DataRelation relcatitem;
DataColumn colmast;
DataColumn coldet;
colmast= ds.Tables["category"].Columns["catid"];
coldet = ds.Tables["item"].Columns["catid"];
relcatitem = new DataRelation("relcatitem", colmast, coldet);
ds.Relations.Add(relcatitem);
for(int j=0;j
AnswerRe: Problem figuring out DataGridView Pin
kjosh2-Jun-06 16:41
kjosh2-Jun-06 16:41 
Questionwant to know the index of ArrayList during BinarySearch Pin
Rizwan Rathore2-Jun-06 10:59
Rizwan Rathore2-Jun-06 10:59 
AnswerRe: want to know the index of ArrayList during BinarySearch Pin
lmoelleb2-Jun-06 11:09
lmoelleb2-Jun-06 11:09 
GeneralRe: want to know the index of ArrayList during BinarySearch Pin
Rizwan Rathore2-Jun-06 11:29
Rizwan Rathore2-Jun-06 11:29 
GeneralRe: want to know the index of ArrayList during BinarySearch Pin
lmoelleb2-Jun-06 21:57
lmoelleb2-Jun-06 21:57 
QuestionSave Image from web browser Pin
Achuzan2-Jun-06 10:42
Achuzan2-Jun-06 10:42 
AnswerRe: Save Image from web browser Pin
Stephan Samuel2-Jun-06 11:45
Stephan Samuel2-Jun-06 11:45 
AnswerRe: Save Image from web browser Pin
Ed.Poore2-Jun-06 13:51
Ed.Poore2-Jun-06 13:51 
QuestionMonitor Bandwidth Usage Pin
Darren_2-Jun-06 10:28
Darren_2-Jun-06 10:28 
AnswerRe: Monitor Bandwidth Usage Pin
Stephan Samuel2-Jun-06 10:38
Stephan Samuel2-Jun-06 10:38 
GeneralRe: Monitor Bandwidth Usage Pin
Darren_2-Jun-06 10:45
Darren_2-Jun-06 10:45 
GeneralRe: Monitor Bandwidth Usage Pin
Darren_2-Jun-06 11:22
Darren_2-Jun-06 11:22 
GeneralRe: Monitor Bandwidth Usage Pin
Stephan Samuel2-Jun-06 11:33
Stephan Samuel2-Jun-06 11:33 
GeneralRe: Monitor Bandwidth Usage Pin
Darren_2-Jun-06 22:31
Darren_2-Jun-06 22:31 
QuestionWhat is "turning on a trace"? Pin
...---...2-Jun-06 9:37
...---...2-Jun-06 9:37 
AnswerRe: What is "turning on a trace"? Pin
leppie2-Jun-06 9:41
leppie2-Jun-06 9:41 
AnswerRe: What is "turning on a trace"? Pin
Chris Meech2-Jun-06 9:52
Chris Meech2-Jun-06 9:52 

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.