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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Label + Textbox

Thread ID:





8329 Nov 1,2003 07:47 AM UTC Nov 1,2003 11:00 AM UTC WinForms 1
Tags: GridControl
Alexandre Nicholas
Asked On November 1, 2003 07:47 AM UTC

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 11:00 AM UTC

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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon