DataGrid Heading Display
-
In my program, I used a DataGrid to display the data from the database. I realized that the column headings are in alphabetical order from left to right, which is not what I want. How can I change the setting to display the columns in my own way? I've tried using the TableMappings property of DataAdapter, but I couldn't make it work. Please give me some instructions about it. Thank you!
-
In my program, I used a DataGrid to display the data from the database. I realized that the column headings are in alphabetical order from left to right, which is not what I want. How can I change the setting to display the columns in my own way? I've tried using the TableMappings property of DataAdapter, but I couldn't make it work. Please give me some instructions about it. Thank you!
-
You can use the DataGrid TableStyles. First you add one GridColumnStyle and a collection of columns to it. Each column you set the 'mapping' value to match the column in ur dataset that u want to display . No time to breathe