datagrid header text
-
I am using dataset to fill my datagrid. As I don't want the user to know my tables fields I using select cname as "NAME" FROM PHONE I am able to fill my datagrid but my problem is my header text is in small character ie. "name". Is there any way in which I can make it CAPS ie. "NAME". :confused: Kindly Suggest Pls Thanks in advance
-
I am using dataset to fill my datagrid. As I don't want the user to know my tables fields I using select cname as "NAME" FROM PHONE I am able to fill my datagrid but my problem is my header text is in small character ie. "name". Is there any way in which I can make it CAPS ie. "NAME". :confused: Kindly Suggest Pls Thanks in advance
try this article if u want to custumize the window form datagrid it also contains the solution of ur problem. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwinforms/html/wnf_CustDataGrid.asp[^] a very good article abhinav gupta
-
I am using dataset to fill my datagrid. As I don't want the user to know my tables fields I using select cname as "NAME" FROM PHONE I am able to fill my datagrid but my problem is my header text is in small character ie. "name". Is there any way in which I can make it CAPS ie. "NAME". :confused: Kindly Suggest Pls Thanks in advance
The best way to do it is to not change the column names in the SELECT statement. Instead of relying on the automatic column creation for you DataGrid, make your own columns. You can control what columns they're bound to in your DataSet and what their HeaderText names are, as well as a slew of other thing. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
I am using dataset to fill my datagrid. As I don't want the user to know my tables fields I using select cname as "NAME" FROM PHONE I am able to fill my datagrid but my problem is my header text is in small character ie. "name". Is there any way in which I can make it CAPS ie. "NAME". :confused: Kindly Suggest Pls Thanks in advance