Click here to Skip to main content
16,004,969 members
Home / Discussions / C#
   

C#

 
GeneralRe: WPF error on VS2008 Pin
jsdhgkjdsahklg23-Mar-12 20:13
jsdhgkjdsahklg23-Mar-12 20:13 
AnswerRe: WPF error on VS2008 Pin
Eddy Vluggen22-Mar-12 11:13
professionalEddy Vluggen22-Mar-12 11:13 
AnswerRe: WPF error on VS2008 Pin
Pete O'Hanlon22-Mar-12 8:38
mvePete O'Hanlon22-Mar-12 8:38 
GeneralRe: WPF error on VS2008 Pin
jsdhgkjdsahklg22-Mar-12 10:01
jsdhgkjdsahklg22-Mar-12 10:01 
GeneralRe: WPF error on VS2008 Pin
Pete O'Hanlon22-Mar-12 10:21
mvePete O'Hanlon22-Mar-12 10:21 
GeneralRe: WPF error on VS2008 Pin
jsdhgkjdsahklg23-Mar-12 20:39
jsdhgkjdsahklg23-Mar-12 20:39 
Questionruntime issue Pin
nitish_0722-Mar-12 3:23
nitish_0722-Mar-12 3:23 
AnswerRe: runtime issue Pin
PIEBALDconsult22-Mar-12 3:37
mvePIEBALDconsult22-Mar-12 3:37 
You don't seem to have added the DataGridView to the Controls of the TabPage.


What I have done in the past is derive a custom TabPage that has a DataGridView already on it and which accepts a DataTable in its constructor.

  public partial class tpDataTable : System.Windows.Forms.TabPage
  {
    private System.Windows.Forms.DataGridView dataGridView1;
    private System.ComponentModel.IContainer components = null ;

    public tpDataTable
    (
      System.Data.DataTable Table
    )
    {
      InitializeComponent() ;

      this.dataGridView1.DataSource = Table ;

...


this.tcResults.TabPages.Add ( new tpDataTable ( dt ) ) ;

modified 22-Mar-12 10:06am.

GeneralRe: runtime issue Pin
nitish_0722-Mar-12 4:38
nitish_0722-Mar-12 4:38 
Questioncode server c# Pin
heba abu ghaleih22 22-Mar-12 2:04
heba abu ghaleih22 22-Mar-12 2:04 
AnswerRe: code server c# Pin
Ravi Bhavnani22-Mar-12 2:11
professionalRavi Bhavnani22-Mar-12 2:11 
GeneralRe: code server c# Pin
heba abu ghaleih22 22-Mar-12 2:25
heba abu ghaleih22 22-Mar-12 2:25 
AnswerRe: code server c# Pin
Ravi Bhavnani22-Mar-12 2:28
professionalRavi Bhavnani22-Mar-12 2:28 
GeneralRe: code server c# Pin
heba abu ghaleih22 22-Mar-12 2:44
heba abu ghaleih22 22-Mar-12 2:44 
Questionserver Pin
heba abu ghaleih22 22-Mar-12 1:45
heba abu ghaleih22 22-Mar-12 1:45 
AnswerRe: server Pin
Ravi Bhavnani22-Mar-12 2:09
professionalRavi Bhavnani22-Mar-12 2:09 
AnswerRe: server Pin
Pete O'Hanlon22-Mar-12 2:14
mvePete O'Hanlon22-Mar-12 2:14 
GeneralRe: server Pin
heba abu ghaleih22 22-Mar-12 2:33
heba abu ghaleih22 22-Mar-12 2:33 
GeneralRegarding source code of C# Pin
Rohit Srivastav22-Mar-12 1:05
Rohit Srivastav22-Mar-12 1:05 
GeneralRe: Regarding source code of C# Pin
Wes Aday22-Mar-12 1:33
professionalWes Aday22-Mar-12 1:33 
GeneralRe: Regarding source code of C# Pin
Rohit Srivastav22-Mar-12 2:24
Rohit Srivastav22-Mar-12 2:24 
GeneralRe: Regarding source code of C# Pin
Vipin_Arora22-Mar-12 2:33
Vipin_Arora22-Mar-12 2:33 
GeneralRe: Regarding source code of C# Pin
Rohit Srivastav22-Mar-12 4:30
Rohit Srivastav22-Mar-12 4:30 
GeneralRe: Regarding source code of C# Pin
Vipin_Arora22-Mar-12 19:26
Vipin_Arora22-Mar-12 19:26 
QuestionHow to delete row from TableLayoutPanel ? Pin
khushbujasmine21-Mar-12 22:59
khushbujasmine21-Mar-12 22:59 

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.