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.