Click here to Skip to main content
15,894,720 members
Home / Discussions / C#
   

C#

 
AnswerRe: See the execution path of my program Pin
Eddy Vluggen16-Feb-09 7:36
professionalEddy Vluggen16-Feb-09 7:36 
QuestionShow Repeating Data Pin
Terick16-Feb-09 4:44
Terick16-Feb-09 4:44 
QuestionDesigning Menu/tool bar system takes action depending on control displayed Pin
SilimSayo16-Feb-09 4:38
SilimSayo16-Feb-09 4:38 
QuestionTreeView-Error Pin
Udayaraju16-Feb-09 3:33
Udayaraju16-Feb-09 3:33 
AnswerRe: TreeView-Error Pin
Xmen Real 16-Feb-09 7:34
professional Xmen Real 16-Feb-09 7:34 
GeneralRe: TreeView-Error Pin
Udayaraju16-Feb-09 8:06
Udayaraju16-Feb-09 8:06 
GeneralRe: TreeView-Error Pin
Xmen Real 16-Feb-09 8:08
professional Xmen Real 16-Feb-09 8:08 
QuestionDataGridView doesn't display anything. Pin
AxiliuM16-Feb-09 3:04
AxiliuM16-Feb-09 3:04 
Hello!
I have 2 forms. The first has a DataSet with a table("Table1"), the second form has a BindingSource, BindingNavigator, DataGridView;
<br />
//...<br />
Form1 fmMain=new Form1;<br />
//...Button click<br />
Form2 fmSecond=new Form2();<br />
fm.ShowDialog(fmMain)<br />
//...<br />
private void Form2_Load(object sender, EventArgs e)<br />
{<br />
BindingSource.DataSource = ((Form1)this.Parent).DataSet;<br />
BindingSource.DataMember = "Table";<br />
DataGridView.DataSource=BindingSource;<br />
BindingNavigator.BindingSource=BindingSource;<br />
}<br />


BindingNavigator shows that there are 100 rows and the position=1, but DataGridView doesn't display anything.

But this code works:

<br />
//...<br />
Form1 fmMain=new Form1;<br />
//...Button click<br />
Form2 fmSecond=new Form2();<br />
fm.ShowDialog(fmMain)<br />
//...<br />
private void Form2_Load(object sender, EventArgs e)<br />
{<br />
DataGridView dt = new DataGridView();<br />
BindingSource.DataSource = ((Form1)this.Parent).DataSet;<br />
BindingSource.DataMember = "Table";<br />
dt.DataSource=BindingSource;<br />
dt.Parent = this;<br />
BindingNavigator.BindingSource=BindingSource;<br />
}<br />


Does anybody have some ideeas?
AnswerRe: DataGridView doesn't display anything. Pin
Calin Tatar16-Feb-09 7:21
Calin Tatar16-Feb-09 7:21 
GeneralRe: DataGridView doesn't display anything. Pin
AxiliuM16-Feb-09 10:22
AxiliuM16-Feb-09 10:22 
GeneralRe: DataGridView doesn't display anything. Pin
Calin Tatar16-Feb-09 22:05
Calin Tatar16-Feb-09 22:05 
QuestionSystem.Net.Webexcpetion Pin
MamthaLalith16-Feb-09 2:01
MamthaLalith16-Feb-09 2:01 
AnswerRe: System.Net.Webexcpetion Pin
EliottA16-Feb-09 2:02
EliottA16-Feb-09 2:02 
GeneralRe: System.Net.Webexcpetion Pin
MamthaLalith16-Feb-09 2:08
MamthaLalith16-Feb-09 2:08 
GeneralRe: System.Net.Webexcpetion Pin
EliottA16-Feb-09 2:10
EliottA16-Feb-09 2:10 
GeneralRe: System.Net.Webexcpetion Pin
MamthaLalith16-Feb-09 2:15
MamthaLalith16-Feb-09 2:15 
GeneralRe: System.Net.Webexcpetion Pin
EliottA16-Feb-09 2:18
EliottA16-Feb-09 2:18 
GeneralRe: System.Net.Webexcpetion Pin
MamthaLalith16-Feb-09 2:21
MamthaLalith16-Feb-09 2:21 
GeneralRe: System.Net.Webexcpetion Pin
musefan16-Feb-09 2:22
musefan16-Feb-09 2:22 
GeneralRe: System.Net.Webexcpetion Pin
MamthaLalith16-Feb-09 2:26
MamthaLalith16-Feb-09 2:26 
JokeRe: System.Net.Webexcpetion Pin
musefan16-Feb-09 2:19
musefan16-Feb-09 2:19 
QuestionOOP's - sealed class Pin
sonj16-Feb-09 1:52
sonj16-Feb-09 1:52 
AnswerRe: OOP's - sealed class Pin
Calin Tatar16-Feb-09 1:58
Calin Tatar16-Feb-09 1:58 
AnswerRe: OOP's - sealed class Pin
musefan16-Feb-09 2:11
musefan16-Feb-09 2:11 
GeneralRe: OOP's - sealed class Pin
sonj16-Feb-09 17:06
sonj16-Feb-09 17: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.