We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Label + Textbox

Thread ID:

Created:

Updated:

Platform:

Replies:

8329 Nov 1,2003 02:47 AM Nov 1,2003 06:00 AM Windows Forms 1
loading
Tags: GridControl
Alexandre Nicholas
Asked On November 1, 2003 02:47 AM

Hello how i can put in the same cell, a label aligned left to a textbox. I don't want to put one label in one cell , and the text box in another cell. Is there an easy way to do that ? thanks

Administrator [Syncfusion]
Replied On November 1, 2003 06:00 AM

There is a .TextMargins property where you can specify how much space should be left for margins to the left and right. You should make .TextMargins.Left large enough to display your label text and then you can handle the CellDrawn event and draw the text with Graphics.DrawString method inside the cells client rectangle thats is passed as event args to CellDrawn. Stefan

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;