Connecting Tech Pros Worldwide Forums | Help | Site Map

how to acess form control from class

Member
 
Join Date: Feb 2008
Posts: 40
#1: Jun 17 '09
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

Newbie
 
Join Date: Dec 2008
Posts: 10
#2: Jun 18 '09

re: how to acess form control from class


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....
Expand|Select|Wrap|Line Numbers
  1. datagridview1.datasource=//your class function name
  2.  
Expert
 
Join Date: Aug 2007
Location: nj,usa
Posts: 299
#3: Jun 19 '09

re: how to acess form control from class


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