Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 30th, 2007, 02:35 AM
Authorized User
Join Date: Aug 2006
Location: Mumbai, Maharastra, India.
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datagrid

hi friends

pls considerr the secnarion
i am using asp.net 2003 and vb.net

i have one dropdownlist
in which i am showing different products

different products has different sizes and different colors

when i choose product from dropdonlist
details of product shows in datagrid

i need to create matrix using datagrid in which rows will be depend upon color and sizes


color/size Small Medium Large
Blue 50 25 5
White 10 28 18
Green 15 10 5

50,25,5, 10 etc are qty of that products
like product in small size and blue color are in 50 qty

how can i change the matrix depend upon products color and size ?

second problem is

cells of qty must be editable
user should be able to edit any cell
and put qty of that color and size combination

and i want only one update button
by pressing this button

all the values of qty of color and size must be update


  #2 (permalink)  
Old January 30th, 2007, 02:47 AM
Registered User
Join Date: Jan 2007
Location: Chandigarh, UT, India.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jasdeephere


You Should write a query in dropdownlist_selectedindexchanged event

dim adp as new sqldataadapter("select * from table_name where product = '" & dropdownlist.selectedvalue & "'",con)
dim ds as new dataset

datagrid.datasource = ds

and use template column to display records into datagrid
in these template columns use ItemTemplate and Controls to add are
textboxes and also you can add one button to update.
This is the small idea about ur problem.

Wish u get something from it

Thanx & Regards
Jasdeep Singh

  #3 (permalink)  
Old May 20th, 2008, 07:18 PM
Registered User
Join Date: May 2008
Location: Mumbai, Maharastra, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Hi Manisha,

you can solve this problem using Gridview in asp.net2.0 with Templete column of gridview. Take Templete column and put one dropdown and fill it using inline code and here also use one textbox for editing values for dropdown. In Dropdown SelectedIndex Event right code for colur change as per qnty basis or products type basis.

Thank's & Regard
Dharmendra Singh
Software Engineer

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom paging in Datagrid with datagrid page count madhusrp ASP.NET 1.0 and 1.1 Professional 12 June 2nd, 2008 01:15 PM
User COntrol Datagrid inside datagrid rodmcleay ASP.NET 1.0 and 1.1 Professional 3 April 14th, 2007 10:11 AM
Creating DataGrid In Repeater/DataGrid liduwan ASP.NET 1.0 and 1.1 Professional 9 March 6th, 2007 03:31 PM
datagrid ajaidass ADO.NET 2 March 1st, 2007 05:36 PM
Need help regarding datagrid ngsharmila .NET Framework 1.x 1 February 1st, 2006 12:55 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.