Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Make a datagrid column a control

Posted on 2011-03-25
9
520 Views
Last Modified: 2012-06-27
Hi,

How can I make a datagrid column a form control.

Thanks
0
Comment
Question by:RIAS
  • 5
  • 4
9 Comments
 
LVL 13

Expert Comment

by:gamarrojgq
ID: 35216906
Hi,

You mean that the column instead of just show the data, you want that use a control?

what control you want to use? the datagrid allow the following column type

Button
Checkbox
Combobox
Image
Link
Text (this is the default)


0
 

Author Comment

by:RIAS
ID: 35217007
It should be  a form control

Cheers
0
 
LVL 13

Expert Comment

by:gamarrojgq
ID: 35217046
Ok, let me get this straight, you want to use a datagridcolumn like you use a form control (Textbox, Label, etc) so you can select it from the toolbar and drop it in a form? is that what you want?

If it so, you can create a usercontrol and add a datagridview with 1 column, but what do you want to accomplish?
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

Author Comment

by:RIAS
ID: 35217154
Hi,
I ma using a true dbgrid component1 .
Need to set a tooltip on the columnheader

Currform.ttGeneric.SetToolTip(CEHctrl.Ctrl, CEHctrl.Ctrl.Tag)

Now the  problem is parameter datacolumn of grid cannot be acontrol...CEHctrl.Ctrl

Cheers
0
 
LVL 13

Accepted Solution

by:
gamarrojgq earned 500 total points
ID: 35217231
ok, are you using the Celltips of the true dbgrid?

http://helpcentral.componentone.com/nethelp/c1truedbgrid/default.htm?turl=contextsensitivehelpwithcelltips.htm

what is ttGeneric? a tooltip control?

0
 

Author Comment

by:RIAS
ID: 35229596
Hi,
Thanks a million mate...will try and get back by today after tryig the link solutions....
ttgeneric is a generic form.


Cheers
0
 

Author Comment

by:RIAS
ID: 35231424
Hi,
Thanks for link.But is there anyway of isplaying a celltip without the event of fetch celltip.
0
 
LVL 13

Expert Comment

by:gamarrojgq
ID: 35232982
Ok the other way will be with a ToolTip control, but if you said that ttGeneric is a Generic Form what is
Currform? and what does the SelToopTip method on your generic form?
0
 

Author Closing Comment

by:RIAS
ID: 35233167
Worked like charm!!!Cheers mate
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Variable Event ? 3 36
VB.NET (2008) - Refactoring Question 2 24
VB.Net/LINQ: ".Contains" condition not finding existing result in MSSQL 16 41
How to limit User Input 2 27
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 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