[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Simulate merging cells in a DataGridView in VB.NET

Posted on 2012-09-13
2
Medium Priority
?
1,332 Views
Last Modified: 2012-09-14
Experts,

I am aware that in VisualStudio.NET the DataGridView control does not offer mergeing cells.  I do however know that there is a way to simulate this.

In the case where I have a dataset that is empty I want to place a message in the DataGridView indicating "No records in Table.".  I'd like to see if I can put the text in, but would I use some sort of Heading line that I would insert?  I think they call then Bands...

Would a Band work as opposed to using code to Pait across columns?  If so what would the code look like for inserting a Band?  Thanks!
0
Comment
Question by:Peter Allen
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 900 total points
ID: 38396734
0
 

Author Closing Comment

by:Peter Allen
ID: 38398390
Thank you!  This is exactly what I need.  I will purchase VIBlend soon, but not now.  I am just developing the project.  I only need to use this code to show a message.  The DataGridView will be locked otherwise.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question