I can't remember off the top of my head how to do #1 (but it can be
done), but #2 can be done with a DataView.

Thanks,

Shawn Wildermuth
[EMAIL PROTECTED]

> -----Original Message-----
> From: dotnet discussion [mailto:[EMAIL PROTECTED]]
> On Behalf Of Marshall Harrison
> Sent: Monday, April 29, 2002 1:38 PM
> To: [EMAIL PROTECTED]
> Subject: [DOTNET] Datagrid problem
>
>
> I'm binding a DataGrid to a DataView and I have two small problems:
>
> 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?
>
> 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.
>
> Thanks in advance.
>
> Marshall Harrison
>
> 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.

Reply via email to