Click here to Skip to main content
15,889,492 members
Home / Discussions / C#
   

C#

 
QuestionHow to Extend Datagrid Pin
sanah s21-Aug-06 19:16
sanah s21-Aug-06 19:16 
QuestionDataGrid control scrolls unexpectedly when you use the arrow keys to move (Visual Studio .NET 2003) [modified] Pin
Kiterq21-Aug-06 18:08
Kiterq21-Aug-06 18:08 
QuestionArrayList & Sub ArrayList Import CSV? Pin
gman4421-Aug-06 17:15
gman4421-Aug-06 17:15 
AnswerRe: ArrayList & Sub ArrayList Import CSV? Pin
leppie21-Aug-06 17:54
leppie21-Aug-06 17:54 
Questionerror 80040154 at instantiation of COM object Pin
mkrelli21-Aug-06 13:21
mkrelli21-Aug-06 13:21 
AnswerRe: error 80040154 at instantiation of COM object Pin
mav.northwind21-Aug-06 23:30
mav.northwind21-Aug-06 23:30 
GeneralRe: error 80040154 at instantiation of COM object Pin
mkrelli25-Aug-06 14:03
mkrelli25-Aug-06 14:03 
QuestionThe ConnectionString property has not been initialized ! Pin
mostafa_h21-Aug-06 13:11
mostafa_h21-Aug-06 13:11 
Hi Everybody !
in btnShow_Click() :
try<br />
  {<br />
     string query="Select * from TestReport";<br />
     con.Open();<br />
     da=new SqlDataAdapter(query,con);<br />
     sqlcmb=new SqlCommandBuilder(da);<br />
     da.Fill(DS,"TestReport");<br />
     dt = DS.Tables["TestReport"];<br />
     dv = dt.DefaultView;<br />
     dataGrid1.DataSource=dv;<br />
     con.Close();<br />
     sqlcmb.Dispose();<br />
     con.Dispose();<br />
   }<br />
  catch(Exception ex)<br />
   {  <br />
      MessageBox.Show(ex.ToString());<br />
   }<br />
}

at the first I have no problem for showing records , but at the second when I press th Show Button , I have this error :
The ConnectionString property has not been initialized !
thanx for any help !
Regards ,

s_mostafa_h

AnswerRe: The ConnectionString property has not been initialized ! Pin
Nader Elshehabi21-Aug-06 13:21
Nader Elshehabi21-Aug-06 13:21 
GeneralRe: The ConnectionString property has not been initialized ! Pin
mostafa_h21-Aug-06 13:32
mostafa_h21-Aug-06 13:32 
GeneralRe: The ConnectionString property has not been initialized ! Pin
Steve :)21-Aug-06 14:36
Steve :)21-Aug-06 14:36 
GeneralRe: The ConnectionString property has not been initialized ! Pin
mostafa_h21-Aug-06 20:26
mostafa_h21-Aug-06 20:26 
GeneralRe: The ConnectionString property has not been initialized ! Pin
Nader Elshehabi22-Aug-06 3:47
Nader Elshehabi22-Aug-06 3:47 
GeneralRe: The ConnectionString property has not been initialized ! Pin
Steve :)22-Aug-06 12:42
Steve :)22-Aug-06 12:42 
AnswerRe: The ConnectionString property has not been initialized ! Pin
Coding C#21-Aug-06 20:26
Coding C#21-Aug-06 20:26 
QuestionmouseMove event Pin
jamsiro21-Aug-06 12:49
jamsiro21-Aug-06 12:49 
AnswerRe: mouseMove event Pin
Shy Agam21-Aug-06 13:06
Shy Agam21-Aug-06 13:06 
AnswerRe: mouseMove event Pin
Nader Elshehabi21-Aug-06 13:18
Nader Elshehabi21-Aug-06 13:18 
QuestionRepresent CSS in C# [modified] Pin
Goebel21-Aug-06 12:32
Goebel21-Aug-06 12:32 
QuestionError: "Call was rejected by callee" Pin
Goalie3521-Aug-06 11:49
Goalie3521-Aug-06 11:49 
AnswerRe: Error: "Call was rejected by callee" Pin
bradsnobar21-Aug-06 12:13
bradsnobar21-Aug-06 12:13 
QuestionHow to paint embedded controls. Pin
bradsnobar21-Aug-06 11:48
bradsnobar21-Aug-06 11:48 
AnswerRe: How to paint embedded controls. Pin
Nader Elshehabi21-Aug-06 13:14
Nader Elshehabi21-Aug-06 13:14 
QuestionUsing reflection to call an internal method Pin
Ista21-Aug-06 11:33
Ista21-Aug-06 11:33 
AnswerRe: Using reflection to call an internal method Pin
Vitaliy Tsvayer21-Aug-06 11:58
Vitaliy Tsvayer21-Aug-06 11:58 

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.