how to acess form control from class

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • progvar
    New Member
    • Feb 2008
    • 40

    how to acess form control from class

    hi
    i am new i c#
    actually i create datagridview1 on form1 and i want to show out put in this datagridview1 from newly created class CnnCls


    how is it possible

    with regards varinder
  • Narz1986
    New Member
    • Dec 2008
    • 10

    #2
    please be a little clearer........ .so i would guess that u want show your output in the datagrid view by callin a class function that u have created to get the data.....if this is so...u can change the functions return type to dataset or datatable and bind that to the datagrid view....
    Code:
    datagridview1.datasource=//your class function name

    Comment

    • mzmishra
      Recognized Expert Contributor
      • Aug 2007
      • 390

      #3
      what do you mean by out from newly created class.It is inn which format.

      Comment

      Working...