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

C#

 
QuestionClosing or ending a process Pin
ckruger21-Dec-05 19:28
ckruger21-Dec-05 19:28 
AnswerRe: Closing or ending a process Pin
enjoycrack21-Dec-05 21:41
enjoycrack21-Dec-05 21:41 
GeneralRe: Closing or ending a process Pin
ckruger21-Dec-05 21:44
ckruger21-Dec-05 21:44 
GeneralRe: Closing or ending a process Pin
ckruger21-Dec-05 22:20
ckruger21-Dec-05 22:20 
GeneralRe: Closing or ending a process Pin
enjoycrack22-Dec-05 6:48
enjoycrack22-Dec-05 6:48 
GeneralRe: Closing or ending a process Pin
ckruger21-Dec-05 22:21
ckruger21-Dec-05 22:21 
GeneralRe: Closing or ending a process Pin
Maqsood Ahmed22-Dec-05 0:54
Maqsood Ahmed22-Dec-05 0:54 
QuestionDatagrid problem Pin
yaminilathatv21-Dec-05 19:19
yaminilathatv21-Dec-05 19:19 
Hi everyone, i have a problem indatagrid.Here is the code below and my problem is i want to retrieve the data from database on to the datagrid based on the selection of dropdowlist. After me selecting the dropdownlist option, datagrid is not displayed. Please help me where am i doing wrong.

private void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e)
{
try
{
connectdb();
Cmd.CommandText = "Select * from emp order by Empno where Dept='" + DropDownList1.SelectedItem.Value.ToString() + "'";
da.SelectCommand = Cmd;
da.Fill(ds,"Emp");
DataGrid1.DataSource = ds;
DataGrid1.DataMember = "Emp";
DataGrid1.DataBind();
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
Con.Close();
}


thanx in advance
yamini
AnswerRe: Datagrid problem Pin
albCode21-Dec-05 21:21
albCode21-Dec-05 21:21 
QuestionIR Remote Control, Help....WM_APPCOMMAND Pin
Xodiak21-Dec-05 18:22
Xodiak21-Dec-05 18:22 
AnswerRe: IR Remote Control, Help....WM_APPCOMMAND Pin
S. Senthil Kumar22-Dec-05 3:16
S. Senthil Kumar22-Dec-05 3:16 
GeneralRe: IR Remote Control, Help....WM_APPCOMMAND Pin
Xodiak22-Dec-05 4:21
Xodiak22-Dec-05 4:21 
Questioncustom controls-query Pin
kal13na1321-Dec-05 18:08
kal13na1321-Dec-05 18:08 
AnswerRe: custom controls-query Pin
freshonlineMax21-Dec-05 22:19
freshonlineMax21-Dec-05 22:19 
QuestionGraphics+Line vanishes when another line is drawn Pin
Mahi.Ragava21-Dec-05 17:40
Mahi.Ragava21-Dec-05 17:40 
AnswerRe: Graphics+Line vanishes when another line is drawn Pin
Christian Graus21-Dec-05 19:14
protectorChristian Graus21-Dec-05 19:14 
GeneralRe: Graphics+Line vanishes when another line is drawn Pin
Mahi.Ragava21-Dec-05 19:47
Mahi.Ragava21-Dec-05 19:47 
GeneralRe: Graphics+Line vanishes when another line is drawn Pin
microsoc21-Dec-05 20:05
microsoc21-Dec-05 20:05 
GeneralRe: Graphics+Line vanishes when another line is drawn Pin
Mahi.Ragava21-Dec-05 20:17
Mahi.Ragava21-Dec-05 20:17 
GeneralRe: Graphics+Line vanishes when another line is drawn Pin
Christian Graus22-Dec-05 9:30
protectorChristian Graus22-Dec-05 9:30 
QuestionScreen Flickers When I Move Mouse Pin
...---...21-Dec-05 15:56
...---...21-Dec-05 15:56 
AnswerRe: Screen Flickers When I Move Mouse Pin
Christian Graus21-Dec-05 16:38
protectorChristian Graus21-Dec-05 16:38 
GeneralRe: Screen Flickers When I Move Mouse Pin
...---...21-Dec-05 17:35
...---...21-Dec-05 17:35 
GeneralRe: Screen Flickers When I Move Mouse Pin
microsoc21-Dec-05 18:33
microsoc21-Dec-05 18:33 
GeneralRe: Screen Flickers When I Move Mouse Pin
Christian Graus21-Dec-05 19:13
protectorChristian Graus21-Dec-05 19:13 

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.