473,385 Members | 1,824 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

controling dynamicly created function objects?

1
Hi.
I have a slight problem with my database software. The thing is I have written code for a function to add a new "Tab" with a "plane" and a "DataGrid" grid for viewing database info.

This is how some of the function code looks,
Expand|Select|Wrap|Line Numbers
  1. public void AddNewDefaultDataGridTab( DataSet dynamicDataSet, string dynamicTable, string TabTitle, string columnFileToLoad)
  2. {
  3.   //<code for making all look as it should.>
  4. }

It works perfectly for getting and fill all the data to all these crated dynamic tabs, but I need to be able to control and modify the data inside after all these dynamic tabs have been created.

maDynamicDataGrid , is the name of the DataGrid inside this function that needs to be controlled.
So I need to address all these maDynamicDataGrid some how.
The simplest solution for this is to create many of these and add a column for the DataGrid name to the function it self, like this.
Expand|Select|Wrap|Line Numbers
  1. SourceGrid.DataGrid maDynamicDataGrid1 = new SourceGrid.DataGrid();
  2. SourceGrid.DataGrid maDynamicDataGrid2= new SourceGrid.DataGrid();
  3. SourceGrid.DataGrid maDynamicDataGrid3 = new SourceGrid.DataGrid();
  4. SourceGrid.DataGrid maDynamicDataGrid4 = new SourceGrid.DataGrid();
  5. SourceGrid.DataGrid maDynamicDataGrid5 = new SourceGrid.DataGrid();
  6.  
  7. public void AddNewDefaultDataGridTab( SourceGrid.DataGrid dynGridName, DataSet dynamicDataSet, string dynamicTable, string TabTitle, string columnFileToLoad)
  8. {
  9.   //<code for making all look as it should.>
  10. }
  11.  
but should not this be able to be solved with out define ding them all by hand?
Jun 27 '07 #1
0 874

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: kyle.tk | last post by:
I want to make a function that will work like this: def updateField(object, fieldName, newValue): object.fieldName = newValue fieldName could be anything, the list of objects fields will grow...
2
by: FAN | last post by:
I want to define some function in python script dynamicly and call them later, but I get some problem. I have tried the following: ################################## # code...
7
by: David. E. Goble | last post by:
Hi all; I need to build a list of strings in one function and use the list in another function. ie buildlist(char list, FILE **infile); { int i;
0
by: TY | last post by:
Hi Everyone, I have a multithreading application, a typical Main thread that uses the ThreadPool.QueueUserWorkItem method to add new threads to the Thread POOL. I need a way to control the...
2
by: Wayne Sepega | last post by:
I have the following Code: foreach (MyClass d in myClassCollection) { curRadioBtn = new RadioButton(); curRadioBtn.Text = d.ToString(); curRadioBtn.GroupName = "Contact"; curRadioBtn.ID =...
1
by: Rako | last post by:
My problem is: I want to create an index to any of the available picture-groups. This index is a table of thumbs with a scrollbar. If you click on the thumb, you get the full picture displayed. ...
9
by: jeff | last post by:
New VB user...developer... Situation...simplified... - I want to wrap a pre and post event around a system generated where the pre-event will always execute before the system event and the...
2
by: Tyson | last post by:
Hello All, I was wondering what is the best/most effective way to control pay layout when using ASP.NET 1.1. I have seen that with 2.0 you can use some new functionality called master pages,...
2
by: pronerd | last post by:
Hi, I am trying to find the correct syntax to pass an event object to a dynamically created function. When I do something like object.onclick = new Funtion(" myFunction(event, someVar);...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.