Click here to Skip to main content
15,892,161 members
Home / Discussions / C#
   

C#

 
AnswerRe: What type is Control.Anchor ? Pin
mav.northwind21-Sep-04 1:23
mav.northwind21-Sep-04 1:23 
AnswerRe: What type is Control.Anchor ? Pin
Dave Kreskowiak21-Sep-04 6:53
mveDave Kreskowiak21-Sep-04 6:53 
QuestionHow to access a local variable from out side it's function Pin
Sakkijha20-Sep-04 21:21
Sakkijha20-Sep-04 21:21 
AnswerRe: How to access a local variable from out side it's function Pin
sreejith ss nair20-Sep-04 22:10
sreejith ss nair20-Sep-04 22:10 
GeneralRe: How to access a local variable from out side it's function Pin
Sakkijha20-Sep-04 22:26
Sakkijha20-Sep-04 22:26 
GeneralRe: How to access a local variable from out side it's function Pin
sreejith ss nair20-Sep-04 22:40
sreejith ss nair20-Sep-04 22:40 
GeneralRe: How to access a local variable from out side it's function Pin
Sakkijha20-Sep-04 23:39
Sakkijha20-Sep-04 23:39 
GeneralRe: How to access a local variable from out side it's function Pin
sreejith ss nair20-Sep-04 23:51
sreejith ss nair20-Sep-04 23:51 
hi,
If you don't want then don't declare that public datatable variable. I told different way to achive your result. that's it.
Please re-write your AddDt and form_Load events.
private void addDT(out DataTable Dt)
{
DataTable test = new DataTable();
test.Columns.Add();
dataGrid1.DataSource=test;
Dt=test;
}

private void Form1_Load(object sender, System.EventArgs e)
{
DataTable Dt;
addDT(out Dt);
//Here you will get the DataTable Which is There in your addDT method
}


feel free to ask more questions Poke tongue | ;-P

**************************
S r e e j i t h N a i r
**************************
GeneralRe: How to access a local variable from out side it's function Pin
Sakkijha21-Sep-04 20:40
Sakkijha21-Sep-04 20:40 
GeneralRe: How to access a local variable from out side it's function Pin
Stefan Troschuetz21-Sep-04 4:16
Stefan Troschuetz21-Sep-04 4:16 
QuestionDummies Question: char[] to byte[] Howto? Pin
Ariadne20-Sep-04 20:39
Ariadne20-Sep-04 20:39 
AnswerRe: Dummies Question: char[] to byte[] Howto? Pin
sreejith ss nair20-Sep-04 23:21
sreejith ss nair20-Sep-04 23:21 
AnswerRe: Dummies Question: char[] to byte[] Howto? Pin
ODS21-Sep-04 1:10
ODS21-Sep-04 1:10 
GeneralProblem with Timer Pin
Jo Develper20-Sep-04 20:24
Jo Develper20-Sep-04 20:24 
GeneralRe: Problem with Timer Pin
leppie20-Sep-04 21:20
leppie20-Sep-04 21:20 
GeneralRe: Problem with Timer Pin
Jo Develper21-Sep-04 1:37
Jo Develper21-Sep-04 1:37 
GeneralRe: Problem with Timer Pin
Robert Rohde21-Sep-04 5:20
Robert Rohde21-Sep-04 5:20 
GeneralRe: Problem with Timer Pin
Dave Kreskowiak21-Sep-04 6:25
mveDave Kreskowiak21-Sep-04 6:25 
GeneralRe: Problem with Timer Pin
Robert Rohde21-Sep-04 8:44
Robert Rohde21-Sep-04 8:44 
GeneralRe: Problem with Timer Pin
Dave Kreskowiak21-Sep-04 6:30
mveDave Kreskowiak21-Sep-04 6:30 
GeneralRe: Problem with Timer Pin
Jo Develper21-Sep-04 23:05
Jo Develper21-Sep-04 23:05 
GeneralRe: Problem with Timer Pin
Dave Kreskowiak22-Sep-04 11:53
mveDave Kreskowiak22-Sep-04 11:53 
GeneralRe: Problem with Timer Pin
Jo Develper22-Sep-04 20:10
Jo Develper22-Sep-04 20:10 
GeneralMoving Data Between Tiers Pin
shambho20-Sep-04 19:23
shambho20-Sep-04 19:23 
GeneralRe: Moving Data Between Tiers Pin
Christian Graus20-Sep-04 20:00
protectorChristian Graus20-Sep-04 20:00 

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.