473,378 Members | 1,416 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,378 software developers and data experts.

Expand Datagrid Problem

I have a datagrid which includes one table. Setting the expand
property to -1 as illustrated below isn't expanding the grid. Should I
be doing something else?

dgdQuotes.ColumnHeadersVisible=true;
dgdQuotes.Expand(-1); //expand all rows
dgdQuotes.Refresh();
Nov 15 '05 #1
1 2194
Hi,

The WinForms data grid can be expanded only if there is more than one data
table in the data set and a data relation has been established between the
tables. The grid should not even display the [+] icons if it is bound to a
DataSet with only one table.

BTW: Ensure you pass the name of the DataTable as the dataMember argument
value when you call the SetDataBinding method on the grid.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"mike" <my*********@yahoo.com> wrote in message
news:1f**************************@posting.google.c om...
I have a datagrid which includes one table. Setting the expand
property to -1 as illustrated below isn't expanding the grid. Should I
be doing something else?

dgdQuotes.ColumnHeadersVisible=true;
dgdQuotes.Expand(-1); //expand all rows
dgdQuotes.Refresh();


Nov 15 '05 #2

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

Similar topics

8
by: 2centbob | last post by:
Has anyone had an issue with SQL Server not being able to expand against a RAID 5 file system? My current configuration is that the server is started and stopped using the local system account. I...
1
by: Jan Sokol | last post by:
I have dataset with three tables. There is relationship between tables. For example: T1->T2->T3. When I show dataset in datagrid I see rows from T1, then I can go to data in T2 and then to data...
2
by: andrewcw | last post by:
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...
4
by: Popoxinhxan | last post by:
I would like to develop the form which allow expanable similar to the window address book application. Which enable you to enter the keyword and press the search button then the main form expand...
1
by: stork | last post by:
I have a Windows Forms application with a DataGrid attached to a DataSet. The DataSet consists of some 36 tables. I would like to expand all of the tables at once in the grid. Is there a way to...
4
by: Karim El Jed | last post by:
Hi, I'm trying to expand a special Node of my TreeView from Codebehind. I have a TreeView on a page for navigating to another site. On the other tsite here is the same TreeView more precisely a...
7
by: sirfunusa | last post by:
Does anyone have sample code for an expanding parent/child datagrid. Like a treeview control with the "+/-" signs. ASP.NET 1.1 thanks Jeff
5
by: shanti.miller | last post by:
I've got a grid that uses paging and displays a maximum of 10 records at a time. Sometimes the fields have a lot of data in them and the datagrid takes up way too much horizontal space. I've...
3
by: kronus | last post by:
Hi Everyone, It's been a long time and I'm always appreciative of your help. I'm working on a Datagrid at the component level in Flex. I know that I can expand a row within the Datagrid by...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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...

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.