Thanks Drew. I'm unfamiliar with DataGridTextBoxColumnStyle so I'll experiment with that.
I'm already creating a DataView based off of the table in the DataSet but I can't see how that solves the problem. Maybe I'm just braindead right now. I'm sure I'll get it working and getting there is half the fun. Marshall -----Original Message----- From: Marsh, Drew [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 2:52 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Datagrid problem Marshall Harrison [mailto:[EMAIL PROTECTED]] wrote: > 1. After retrieving the data I need to programtically adjust > the data in a column. To be exact I need to convert a string > date in YYYYMMDD format to a proper date format. I can't seem > to find a way to do this? Use a DataGridTextBoxColumnStyle and set the FormatInfo and Format properties[1] according to the format you'd like to be displayed. > 2. After retrieving the data I need to programtically decide > if the record should be included in the grid. Is there a way > to do this? I looked at DataGrid.OnItemCreated but all the > examples I found were dealing with the header text. Besides > it seems as if this fires too late (i.e. when the row is > bound)and I need to keep the row from binding. Bind to a DataView instead of the DataTable itself. HTH, Drew [1] ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemwindowsformsdatagridtextbo xcolumnclassformattopic.htm You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.