Re: Gridview Formatting is poor.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



For computed columns, see :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndive/html/data05312002.asp

This is not at the control level but it is at the data source level so that
you have a computed column that holds the proper value...

Don't know your app but what if someone wants to enter a link to a ftp site
or a newsgroup ?

--
Patrice

"Edwin Knoppert" <news@xxxxxxxxxxxxxx> a écrit dans le message de
news:43ce26e9$0$12838$ba620dc5@xxxxxxxxxxxxxxxxxxxxxx
> There is only a dataformatstring propert accepting {0:} stuff.
> I read about that yesterday and it seems limitted.
> Only date and number format.
>
> The user which fills in is not interested in a protocol (http://)
> Even if we added it on update/insert the user is confronted with the
> protocol which he never entered.
> Besides i find that result code should be check, not input code.
> The result code is what is actually used such in this case simply clicking
> it and results in wrong url.
> If the format is not able to do this, i'll be forced to stupid eval code
> with possibly verify if field was empty.
> O well, only the actual link (href) needs to be modified, not what the
users
> sees per se.
>
>
>
> "Patrice" <a@xxxx> schreef in bericht
> news:OlAyI7BHGHA.916@xxxxxxxxxxxxxxxxxxxxxxx
> >I would handle this at the query level (or even when the data is
entered).
> > It allows to make sure you have the protocol info instead of relying
each
> > time you need it on formatting to get the proper value.
> >
> > Not familiar yet with the gridview. Doesn't it support databinding
> > expression ? In the worst case, you could also add a computed column...
> >
> > --
> > Patrice
> >
> > "Edwin Knoppert" <news@xxxxxxxxxxxxxx> a écrit dans le message de
> > news:43ce1d66$0$12848$ba620dc5@xxxxxxxxxxxxxxxxxxxxxx
> >> I want to format a hyperlink bounded field.
> >> Fields *could* have http:// *or not* in the websitename entered.
> >> I want to format this to http://website.com otherwise i'll get a
> >> relative
> >> link.
> >>
> >> I know the itemtemplate workarounds or through row events.
> >> It's that i'm trying to use the internal format stuff itself.
> >> Is this possible?
> >>
> >>
> >
> >
>
>


.


Quantcast