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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DateTime field in GridDataBoundGrid

Thread ID:





44505 May 25,2006 11:12 AM UTC May 25,2006 12:06 PM UTC WinForms 4
Tags: GridControl
Nick Gardner
Asked On May 25, 2006 11:12 AM UTC

Hi, I have a datatable with 2 columns of type DateTime. In the GDBGrid cells in those columns have a drop down arrow appear at the rightmost edge of the cell. How can I remove that arrow whilst still having the cell formatted as date time (so that sorting works correctly)? Thanks Nick

Administrator [Syncfusion]
Replied On May 25, 2006 11:15 AM UTC

Hi Nick, Try this code to hide a DropDown button in a cell. Here is a code snippet. this.gridDataBoundGrid1.Binder.InternalColumns["ColumnName"].StyleInfo.ShowButtons = Syncfusion.Windows.Forms.Grid.GridShowButtons.Hide; Please let me know if this helps. Best Regards, Haneef

Nick Gardner
Replied On May 25, 2006 11:23 AM UTC

Thats great. Do you know how I can get the cell to show the time as well as the date (the time is available in the underlying datatable)? Thanks Nick

Administrator [Syncfusion]
Replied On May 25, 2006 11:29 AM UTC

Hi Nick, Colud you try this code to set the format of the a cell in a grid. Here is a code snippet. this.gridDataBoundGrid1.Binder.InternalColumns["Date"].StyleInfo.Format = "dd/mm/yyyy MM:hh"; Let me know if you have any further assistance. Regards, Haneef

Nick Gardner
Replied On May 25, 2006 12:06 PM UTC

Super! Thanks.


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