Roberto Mason

Roberto Mason

  • NA
  • 5
  • 11.7k

Substituting a value in DataGridView

Feb 12 2007 10:23 PM
I'm fairly new to C# and SQL, and along with that Visual Studio 2005. Despite that I'm trudging along slowly. I'm at a point now where the interface is built, I have a datasource with a query. I have a DataGridView associated to a table. I have a field in the DataGridView called TypeAddress. Values stored in the Table are string values = to 1, 2,3, or 4.

Type     Description
---------------------
1       - Father and Mother
2       - Father
3       - Mother
4       - Guardian

what I need to do is the following. when the Cursor is focused on a cell, I want the numeric type to be replace by the description. Can this be done with DataGridView

Thank You