Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
QuestionHow to tell when socket is disconnected Pin
Glenn E. Lanier II16-Jun-06 5:42
Glenn E. Lanier II16-Jun-06 5:42 
QuestionSetting the default button on a user control Pin
GazzaJ16-Jun-06 5:40
GazzaJ16-Jun-06 5:40 
QuestionMoon phase calculation library? Pin
Radoslav Bielik16-Jun-06 5:38
Radoslav Bielik16-Jun-06 5:38 
AnswerRe: Moon phase calculation library? Pin
Dan Neely16-Jun-06 5:59
Dan Neely16-Jun-06 5:59 
AnswerRe: Moon phase calculation library? Pin
Ravi Bhavnani16-Jun-06 7:08
professionalRavi Bhavnani16-Jun-06 7:08 
GeneralRe: Moon phase calculation library? Pin
Radoslav Bielik16-Jun-06 11:19
Radoslav Bielik16-Jun-06 11:19 
Questioncould i write a program that change keyboard function with C# Pin
largs16-Jun-06 5:35
largs16-Jun-06 5:35 
QuestionBind to a private member variable of my own class. [modified] Pin
User 209307316-Jun-06 5:25
User 209307316-Jun-06 5:25 
Dear Friends,
I have a class with two Member variables inside it as follow :
<code>
public class MyView
{
  private string name;
  public string Name
  {
    get{return this.name;}
    set{this.name = value;}
  }

  private DataView dv;

  public MyView(string vName)
  {
    this.dv = new DataView();
    this.name = vName;
  }
}
</code>


I dont want to set the internal DataView variable to public and I want to use Binding when using this class as follow.Suppose that the BindGridView method is a method in a windows form class :

private void BindGridView()
{
  MyView viewOnject = new MyView("SampleView");
  this.dataGridView1.DataSource = viewObject;
  //I want to bind the GridView control to private DataView member variable of MyView class.<font color="blue">Automatically By Default</font>:confused:
}


How can I do this ?
Note : I dont want to set the internal DataView variable to public or expose it as a public property.

Best Regards,
Xironix


[ _ Always there is another way _ ]

-- modified at 12:20 Friday 16th June, 2006
QuestionConnectionString Problem of DLL Pin
Chikuu16-Jun-06 5:02
Chikuu16-Jun-06 5:02 
Question******** into the wind? Pin
Malcolm Smart16-Jun-06 4:43
Malcolm Smart16-Jun-06 4:43 
AnswerRe: ******** into the wind? Pin
Josh Smith16-Jun-06 4:48
Josh Smith16-Jun-06 4:48 
AnswerRe: ******** into the wind? Pin
BoneSoft16-Jun-06 10:29
BoneSoft16-Jun-06 10:29 
QuestionPanel_paint method Pin
reshsilk16-Jun-06 4:21
reshsilk16-Jun-06 4:21 
AnswerRe: Panel_paint method Pin
Josh Smith16-Jun-06 4:26
Josh Smith16-Jun-06 4:26 
GeneralRe: Panel_paint method Pin
Guffa16-Jun-06 5:00
Guffa16-Jun-06 5:00 
GeneralRe: Panel_paint method Pin
reshsilk16-Jun-06 5:08
reshsilk16-Jun-06 5:08 
Questiondatatype error datagridview Pin
adamoz16-Jun-06 4:17
adamoz16-Jun-06 4:17 
QuestionScreen Capture Image bit depth question.. [modified] Pin
Greg Ellis16-Jun-06 4:16
Greg Ellis16-Jun-06 4:16 
QuestionProblem opening and reading file [modified] Pin
jjvainav16-Jun-06 4:14
jjvainav16-Jun-06 4:14 
AnswerRe: Problem openning and reading file Pin
Chikuu16-Jun-06 5:05
Chikuu16-Jun-06 5:05 
GeneralRe: Problem openning and reading file Pin
jjvainav16-Jun-06 5:55
jjvainav16-Jun-06 5:55 
GeneralRe: Problem openning and reading file Pin
Rizwan Majeed16-Jun-06 6:41
professionalRizwan Majeed16-Jun-06 6:41 
AnswerRe: Problem opening and reading file Pin
BoneSoft16-Jun-06 10:39
BoneSoft16-Jun-06 10:39 
QuestionCreation of Wizard to generate C# files Pin
tom groezer16-Jun-06 3:56
tom groezer16-Jun-06 3:56 
QuestionHow to show files in listView Pin
akualopetak16-Jun-06 3:13
akualopetak16-Jun-06 3: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.