Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
QuestionIs it possible to have SQL Express and SQL Server Enterprize installed at the same time ?? [modified] Pin
emran8348-Aug-06 17:15
emran8348-Aug-06 17:15 
AnswerRe: Is it possible to have SQL Express and SQL Server Enterprize installed at the same time ?? Pin
Nader Elshehabi8-Aug-06 19:05
Nader Elshehabi8-Aug-06 19:05 
Questionmotherboard Pin
rana mahummad zeeshan8-Aug-06 16:19
rana mahummad zeeshan8-Aug-06 16:19 
AnswerRe: motherboard Pin
Dave Kreskowiak8-Aug-06 16:32
mveDave Kreskowiak8-Aug-06 16:32 
AnswerRe: motherboard Pin
Nader Elshehabi8-Aug-06 18:55
Nader Elshehabi8-Aug-06 18:55 
GeneralRe: motherboard Pin
leppie8-Aug-06 22:41
leppie8-Aug-06 22:41 
QuestionISO 8583 Pin
Tiger4568-Aug-06 14:53
Tiger4568-Aug-06 14:53 
QuestionDatagrid doesn't show data [modified] Pin
ircnoob8-Aug-06 14:25
ircnoob8-Aug-06 14:25 
The above code (C#)works as fare as the MessageBox.Show("The name of the second column is " + colSecond.ColumnName); can answer the question so the connection to the database is okay .. But no data are shown in the datagrid..

Whats wrong.. guess its something to do with the databinding ??


MySqlConnection cnnVideos = new MySqlConnection("Database=tiebreak;Data Source=localhost;User Id=root;Password=test");
cnnVideos.Open();
string strVideos = "SELECT * from member;";
MySqlCommand cmdVideos = new MySqlCommand(strVideos, cnnVideos);

MySqlDataAdapter dadVideoCollection = new MySqlDataAdapter(cmdVideos);

DataSet setVideos = new DataSet("member");
dadVideoCollection.Fill(setVideos);
dataGrid1.DataSource = setVideos;
dataGrid1.DataMember = setVideos.Tables[0].TableName;
dataGrid1.SetDataBinding(setVideos, "member");


DataColumn colSecond = setVideos.Tables[0].Columns[2];
MessageBox.Show("The name of the second column is " + colSecond.ColumnName);

cnnVideos.Close();


-- modified at 20:26 Tuesday 8th August, 2006
AnswerRe: Datagrid doesn't show data Pin
gkl08188-Aug-06 15:17
gkl08188-Aug-06 15:17 
GeneralRe: Datagrid doesn't show data Pin
ircnoob8-Aug-06 15:28
ircnoob8-Aug-06 15:28 
AnswerRe: Datagrid doesn't show data Pin
ircnoob8-Aug-06 23:14
ircnoob8-Aug-06 23:14 
Questionusing separate codefiles Pin
Glen Harvy8-Aug-06 14:22
Glen Harvy8-Aug-06 14:22 
AnswerRe: using separate codefiles Pin
Leslie Sanford8-Aug-06 16:26
Leslie Sanford8-Aug-06 16:26 
GeneralRe: using separate codefiles Pin
Glen Harvy8-Aug-06 18:39
Glen Harvy8-Aug-06 18:39 
GeneralRe: using separate codefiles Pin
Leslie Sanford8-Aug-06 19:05
Leslie Sanford8-Aug-06 19:05 
GeneralRe: using separate codefiles Pin
Glen Harvy8-Aug-06 21:21
Glen Harvy8-Aug-06 21:21 
AnswerRe: using separate codefiles Pin
Nader Elshehabi8-Aug-06 18:45
Nader Elshehabi8-Aug-06 18:45 
QuestionerrorProvider problem [modified] Pin
dustin108-Aug-06 13:25
dustin108-Aug-06 13:25 
AnswerRe: errorProvider problem Pin
stancrm8-Aug-06 22:14
stancrm8-Aug-06 22:14 
QuestionColor deviation algorithm... Pin
Shy Agam8-Aug-06 12:54
Shy Agam8-Aug-06 12:54 
QuestionExplorer bar type applications Pin
martin_hughes8-Aug-06 12:17
martin_hughes8-Aug-06 12:17 
QuestionCustom type casting Pin
Master Toothless One8-Aug-06 11:04
Master Toothless One8-Aug-06 11:04 
AnswerRe: Custom type casting Pin
led mike8-Aug-06 11:08
led mike8-Aug-06 11:08 
AnswerRe: Custom type casting [modified] Pin
Patricker8-Aug-06 12:00
Patricker8-Aug-06 12:00 
GeneralRe: Custom type casting Pin
Master Toothless One8-Aug-06 13:06
Master Toothless One8-Aug-06 13:06 

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.