Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
23802 | Jan 20,2005 05:56 AM UTC | Jan 21,2005 07:34 AM UTC | WinForms | 4 |
![]() |
Tags: GridControl |
private void gridControl1_QueryCellFormattedText(object sender, GridCellTextEventArgs e) { if(e.Style.CellValueType == typeof(DateTime)&& e.Style.Text.Length == 0) { e.Text = "00/00/0000"; e.Handled = true; } }
//c#
this.grid.Model.QueryCellFormattedText += new GridCellTextEventHandler(Model_QueryCellFormattedText)
''vb
AddHandler Me.grid.Model.QueryCellFormattedText, AddressOf Model_QueryCellFormattedText
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.
This page will automatically be redirected to the sign-in page in 10 seconds.