Change value of datagridview
-
Hai, I use datagridview to display all the data from database. There is a field named userlevel in the database. The value stored in the database is '1', '2' and so on. So, when display in the datagridview, can it change the '1' to admin and '2'to power user and so on. Thank in advance.
-
Hai, I use datagridview to display all the data from database. There is a field named userlevel in the database. The value stored in the database is '1', '2' and so on. So, when display in the datagridview, can it change the '1' to admin and '2'to power user and so on. Thank in advance.
Why do you not do it in the query?
Il principe ;)
-
Hai, I use datagridview to display all the data from database. There is a field named userlevel in the database. The value stored in the database is '1', '2' and so on. So, when display in the datagridview, can it change the '1' to admin and '2'to power user and so on. Thank in advance.
i think u r having 2 tables to get data from. if this is the way then use views in the database. it will gona solve ur problem.
J A Nasir K
modified on Monday, April 28, 2008 8:41 AM
-
Why do you not do it in the query?
Il principe ;)