473,657 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

grid not expanding with Expand(-1)

I have 3 datasets I rotate to my datagrid
I apply a style to each like this and cause the grid ( gridTX ) to expand..

When I look in the debug window at the datasouce attached to the grid, those that work have a tables collection andI can see the List. In the one that is not autoexpanding correctly I can see the table name but no Tables and List. I dont know why that would appear different and if is related .. ideas ( instead I see the tablename hyperlinked & must click on it ). The table in question is a simple 2 column table and is not heiracheal. Is there a property I must address ? I load the data myself to this data set & table. Once clicked on everthing is OK. Thanks Andre

private void AttachXMLdriven Style(string mappTableName

string fiPath=Applicat ion.StartupPath + @"\tablestyle.x ml"
AWUtilityWinFor m myStyleBuilder = new AWUtilityWinFor m( fiPath)
myStyleBuilder. addXMLDriveTabl eStyle(gridTX,m appTableName)
gridTX.Expand(-1)
}
Nov 16 '05 #1
2 1154
Hi Andrew,

I'm not quite sure about your question. Do you want the datagrid to expand
automatically or some rows cannot be expand? If so, please try to check if
you have set the DataRelation correctly in DataSet objects. Could you
please show us your DataSet structure here? Thanks!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 16 '05 #2
It seems that the problem was caused by not specifying the table when I bound the grid

gridTX.DataSour ce=ds; // did not wor

BUT this works
gridTX.DataSour ce=ds.Tables[mappTableName]

Thanks ! Andrew
Nov 16 '05 #3

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

Similar topics

1
2189
by: Bhiksha Raj | last post by:
Hi, I created an expanding menu on one of the frames in my webpage using code I got from http://www.dynamicdrive.com/dynamicindex1/navigate1.htm I have embedded the code (with minor modification to point to my links) into a frame on my webpage. The problem is that when I open the page on netscape 7,
0
3027
by: Vladimir.Sakharuk | last post by:
I have created ExpandableObjectConverter in C#. for use in System.Windows.Forms.PropertyGrid. The property grid shows the DiffItem is a object that holds member TheItem. without expanding TheItem It works if u click, select from drop down box. until you DoubleClick it shows error: "Invalid property Value". with "Object type cannot be converted to target type."
4
1453
by: M | last post by:
Hy, I would like to create a master /detail datagrid, that is a datagrid that (when I click on an item) shows some other item's details expanding the rows under the selected grid Can someone help me with this? Thanks!
5
1518
by: Chad | last post by:
for ease of use, and for features such as resizable columns, edit in place, horiz and vertical scrolling, heirarchy display, etc?
0
1233
by: anuparvathy | last post by:
Hi I am creating a website using visual studio 2005. In the design view of my asp.net page i have placed a grid view and then i have connected it to the database also. i have set the item style wrap property to false in my source code for every column.so in my output i get my data in a single line and the cell width adjusts according to it.but i want my cell width to be small and data to appear in a single line, meaning if i have a big data...
2
1673
by: KDawg44 | last post by:
Hi, I am writing a GUI front end in Python using Tkinter. I have developed the GUI in a grid and specified the size of the window. The widgets are centered into the middle of the window. I would like them to fill the window. I tried using the sticky=E+W+N+S option on the widgets themselves and the window itself. How can I get this?
1
5301
by: Jahedx99 | last post by:
Check out the site: www.progtalk.com. They have a great article to expand and collapse rows of a grid. The cool part it, that the expanding and collapsing happens using Javascript. I think the exact link is: http://www.progtalk.com/ViewArticle.aspx?ArticleID=1
0
1282
by: sridharvenkataramanan | last post by:
Hi, I am trying to display a kind of tree like structure with in a data grid. Can any one suggest how to proceed or which control would be apt? top nodes +Cosmetics +Beverages Expanding top node cosmetics -Cosmetics +Perfumes
0
1479
by: vertigo262 | last post by:
This little glitch is driving me crazy. been researching all day and can't get it to work. I have a hover over, and when it fills with data, it expands. It works in firefox, but not IE. Live link (try with IE and other browsers) http://www.reefjunkies.org/Bulletins/Default.aspx
0
8402
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8829
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8508
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8608
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5633
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4164
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2733
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1962
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1627
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.