473,503 Members | 11,281 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 AttachXMLdrivenStyle(string mappTableName

string fiPath=Application.StartupPath + @"\tablestyle.xml"
AWUtilityWinForm myStyleBuilder = new AWUtilityWinForm( fiPath)
myStyleBuilder.addXMLDriveTableStyle(gridTX,mappTa bleName)
gridTX.Expand(-1)
}
Nov 16 '05 #1
2 1147
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.DataSource=ds; // did not wor

BUT this works
gridTX.DataSource=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
2184
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...
0
3022
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...
4
1439
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...
5
1513
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
1223
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...
2
1661
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...
1
5298
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...
0
1278
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...
0
1461
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...
0
7095
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...
0
7361
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7470
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...
0
5602
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4693
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...
0
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1523
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 ...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.