473,385 Members | 2,029 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.

ilist Contains

The chartOptions.ChartSelectedRows is a Ilist. It seems to remore all of the
values??

DataTable tableForChart = chartData.Tables[0].Copy();

//DataColumnCollection cols = tableForChart.Columns;

for (int i = 0; i < chartData.Tables[0].Columns.Count; i++)

{

if (! chartOptions.ChartSelectedRows.Contains(
chartData.Tables[0].Columns[i].ColumnName))

// if (tableForChart.Columns.CanRemove((chartData.Tables[0].Columns[i])))

tableForChart.Columns.Remove(chartData.Tables[0].Columns[i].ColumnName);

}
--
David
http://www.helixpoint.com
Nov 16 '05 #1
0 1255

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Darren | last post by:
I'm trying to bound a custom object to a combobox using DataSource property. The code works correctly however when the user selects a different value I get a runtime error of NullReferenceException...
4
by: emma middlebrook | last post by:
Hi Straight to the point - I don't understand why System.Array derives from IList (given the methods/properties actually on IList). When designing an interface you specify a contract. Deriving...
0
by: Darren | last post by:
I'm trying to bound a custom object to a combobox using DataSource property. The code works correctly however when the user selects a different value I get a runtime error of NullReferenceException...
3
by: ad | last post by:
Hi, When I studied CSharp, I am confuse by IList, Collection and Array. What is the relationships between them?
2
by: J Holsinger | last post by:
Does anybody know how the IList Contains method compares objects when doing a search through the innerList? For objects stored w/o a key will Contains make a binary comparion of the stored objects...
1
by: Ldraw | last post by:
I am returning an IList from a WebService Function that contains a custom Class. The class contains ID and Name properties. I can see these in the IList when the data is returned. I tried to use...
7
by: Tom Costanza | last post by:
I have a collection class that inherits from CollectionBase. I want to override the Contains method for the List property. I'm not sure how to do that. Can anyone assist? Thanks in advance,...
6
by: nicolas.rolland | last post by:
Would anyone know the reson why IList<Tdoes not implements IList ?? This results in strange behaviours, like typeof(IList).IsAssignableFrom(typeof(List<string>)) --true...
1
by: wdrone | last post by:
At the risk of sounding like one of the usual morons who claim everything that goes wrong in their code is a bug - I am nearly convinced the following situation is a bug in VB.NET (and if its not it...
2
by: Tony Johansson | last post by:
Hello! The Array class implements these interfaces IClonable, IList, ICollection and IEnumerable. Note only interfaces are inherited and no classes so these interfaces will be implemented in...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.