Data spread over multiple columns instead of one in gridview
-
Hi all, I've got a problem to read data into multiple columns. I only retrieve one column from a database and automatically I get one column in my gridview, but that's not what I need, I need to get the data spread over multiple columns. For example: -> This is what I've got at the moment: | data1 | | data2 | | data3 | | data4 | | data5 | | data6 | | data7 | -> This is what I need: | data1 | | data2 | | data3 | | data4 | | data5 | | data6 | | data7 | Does anyone know how I can do this? Thanks in advance!
Excuse me for my bad english. :)
-
Hi all, I've got a problem to read data into multiple columns. I only retrieve one column from a database and automatically I get one column in my gridview, but that's not what I need, I need to get the data spread over multiple columns. For example: -> This is what I've got at the moment: | data1 | | data2 | | data3 | | data4 | | data5 | | data6 | | data7 | -> This is what I need: | data1 | | data2 | | data3 | | data4 | | data5 | | data6 | | data7 | Does anyone know how I can do this? Thanks in advance!
Excuse me for my bad english. :)
I think You should use Datalist for this case where you can set the RepeatColumns property and display the data.
-
Hi all, I've got a problem to read data into multiple columns. I only retrieve one column from a database and automatically I get one column in my gridview, but that's not what I need, I need to get the data spread over multiple columns. For example: -> This is what I've got at the moment: | data1 | | data2 | | data3 | | data4 | | data5 | | data6 | | data7 | -> This is what I need: | data1 | | data2 | | data3 | | data4 | | data5 | | data6 | | data7 | Does anyone know how I can do this? Thanks in advance!
Excuse me for my bad english. :)
Why you are not using
Repeater Control
then ?Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Hi all, I've got a problem to read data into multiple columns. I only retrieve one column from a database and automatically I get one column in my gridview, but that's not what I need, I need to get the data spread over multiple columns. For example: -> This is what I've got at the moment: | data1 | | data2 | | data3 | | data4 | | data5 | | data6 | | data7 | -> This is what I need: | data1 | | data2 | | data3 | | data4 | | data5 | | data6 | | data7 | Does anyone know how I can do this? Thanks in advance!
Excuse me for my bad english. :)
Use Cursor