By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,686 Members | 1,603 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,686 IT Pros & Developers. It's quick & easy.

Need help with Microsoft datagrid control

P: n/a
Don
Is there a way to change how boolean values are represented in the microsoft
datagrid control (e.g. "Yes" and "No", or "1" and "0", instead of "True" and
"False")?

- Don
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
The "easiest" way(s) to get this done is either TemplateColumn, or
implementing ItemCreated... Of course, depending on requirement and
restrictions, you could go as far as having that data column be an Int
datatype -- which would then be formattable (then it'd be fairly
straightforward to get it formatted in desired fashion).

BoundColumn is somewhat limited in so that it will only take the
DataStringFormat. However, bool does not implement IFormattable so in
essence, if you specify this attribute, it'd be ignored..

Hope this helps.

"Don" <un*****@oblivion.com> wrote in message
news:uv0fb.6316$9l5.1686@pd7tw2no...
Is there a way to change how boolean values are represented in the microsoft datagrid control (e.g. "Yes" and "No", or "1" and "0", instead of "True" and "False")?

- Don

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.