CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: NewsGroup Date Entered: 8/1/2006 8:14:25 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 0 Views: 357 Favorited: 0 Favorite
1 Items, 1 Pages 1 |< << Go >> >|
johnhenderson
Asp.Net User
Select Distinct values from an existing VB Dataset or DataTable8/1/2006 8:14:25 PM

0

Hi - this may be posted in the wrong place, and if so please forgive me.

I'm new to Visual Basic 2005 VSTO and I'm developing a small web app designed to read data from an access database linked to an excel worksheet.  That portion works fine - I'm able to get the data (in whole) and bind to a GridView for display.

Next I coded to be able to create several drop-down boxes for selecting fewer rows to display in the GridView, and that works fine.

Now for the tricky part.  I want to be able to select a value in one drop-down, and automatigically reduce the available values in the other drop downs to only those rows containing the selected value from the first dropdown - and that's where I'm getting stuck.  Regardless of the final approach taken, I have to reduce the values in the drop-down to unique values only, because values repeat across many rows within the data.  In recent attempts, my dropdowns were bound to specific queries in the database (e.g. Select [single column name] as single_column from query].  My problem is that since I'm only selecting distinct values for a single column, I don't have other columns (represented by other drop-downs) in order to do filtering on.  My only option that I've found so far is to go back to the select statement and augment it with "Where" criteria for the other dropdowns selected text values.  I know - this is a sloppy approach.

Has anyone come across anything like this in the past and found a clean way to approach this type of app.  Essentially, the web-page should work much like the auto-filter processing done in an Excel worksheet - you select a value for one filtered column, and the others update to only show rows that meet the first selection, and so on.  Can I expect any success by filling a dataset with the entire set of excel rows, and then somehow select distinct values from that dataset?  Any examples of that out there?

Any help would be greatly appreciated.

Thanks,
Lost as a newbie.

1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Visual Basic .NET: power tools Authors: Evangelos Petroutsos, Richard Mansfield, Pages: 694, Published: 2003
Pro ASP.NET 2.0 in VB 2005 Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Pro ASP.NET 2.0 in VB 2005: special edition. Authors: Laurence Moroney, Matthew MacDonald, Pages: 1360, Published: 2006
Microsoft ASP.NET programming with Microsoft Visual Basic .NET step by step: version 2003 Authors: G. Andrew Duthie, Pages: 624, Published: 2003
Programming Microsoft SQL server 2000 with Microsoft Visual Basic .NET Authors: Rick Dobson, Pages: 660, Published: 2002

Web:
Select Distinct values from an existing VB Dataset or DataTable ... Can I expect any success by filling a dataset with the entire set of excel rows, and then somehow select distinct values from that dataset? ...
HOW TO: Implement a DataSet SELECT DISTINCT Helper Class in Visual ... HOW TO: Implement a DataSet SELECT DISTINCT Helper Class in Visual Basic . ... Optionally, you can assign an existing DataSet object to the DataSet ... This method copies unique values of the field that you select into a new DataTable. ...
DataTable.Select DISTINCT values : distinct, select Jan 19, 2004 ... Is there an equivalent to select only distinct values from one column? ... Dim dsDest As DataSet. Private Sub Form1_Load(ByVal sender As ...
datatable distinct - Dot Net Search Engine swicki - powered by ... VB & C# in the same project? Access Keys Need to show up as underlined by default . ... Filter and sort the datatable or dataset. 2. select distinct field from the fi. ... Datatable from which the distinct values has to be fetche. ...
datatable.select("Distinct") or such to string? values for the TSR column and process each row in a for loop. ... #HOW TO: Implement a DataSet SELECT DISTINCT Helper Class in Visual C# . .... .google.com /group/microsoft.public.dotnet.languages.vb/msg/f88449bba5e5e1d0 ...

Help with DISTINCT return in SQL query with multiple selections ... On the records with identical values, I want to look at the account ... there is a dataset.select method to help filter rows in the dataset but ... Is there a way to do something through VB that would look for those two ... SELECT Distinct from DataTable, without using SQL I have the following query ...
Internal connection fatal error and other random db connection ... FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, ... DBManager.vb:line 419 << ... Empty Dim Ds As New DataSet 'Sql = "SELECT DISTINCT TOP (SELECT CAST(a01_value AS INT) FROM A01_OPTIONS .... new to asp.net programming, how do i add a text value to a page ...
database, vb.net code - data_access ... So each time j increments you re-use the value for i, causing your duplicates. Out on a limb, use: Dim str As String = "select distinct(ExamDate) from ...
Assembly generation failed -- Referenced assembly does not have a ... select distinct values from an existing vb dataset or datatable · creating a new site · connect to table using url address ...
allowDefinition='MachineToApplication error - IIS 5 to IIS 6? - ng ... select distinct values from an existing vb dataset or datatable · class files · dotfuscator and ,net framework 2 web app projects ...






web site administration tool window

question about static classes

database connection and include problem

skmmenu

remote invocation

calling a class dll dynamically at runtime ?

how to add intellisense to asp.net page

set and let commands

regex - numbers

inputing data for a blog ...

text file as backup

alert box

what is meant by "identity of your asp.net application"?

showing a variable value in an error message, how?

problem with sessions and caching

me.close() help

new using gridview

engine/uploader to simplify adding products

where can you get the ctp for the .net 2.0 framework?

any significant changes from pdc bits to beta 1?

variable value resets how to prevent it

how to use variable for sqldatasource selectcommand?

uploading / downloading files in web page

ispostback

is there something wrong with my button?

like operator & integer help

rss feed

how to check if the user is logged in

asp.net compatible autoresponder info

user control a needs to access a user control b property - how?

   
  Privacy | Contact Us
All Times Are GMT