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

Label + Textbox

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

1 Reply

AD Administrator Syncfusion Team 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

Live Chat Icon For mobile
Up arrow icon