How to Fill Last Empty Space of Data List ?

Hello Experts,
I am filling Dataset with 3 colums in a row. I am facing a prmblem whenever there 1,2,4,5,7,8..  items in Datalist, there is an empty space remains. How to overcome this problem ? For more details please see the attached dotnet source files and images of proble.

Thanks in advance
viewAllIndustries.aspx.txt
viewAllIndustries.aspx.cs.txt
datalistproblem.JPG
datalistCurrenntImage.JPG
dotsandcomsAsked:
Who is Participating?
 
dotsandcomsConnect With a Mentor Author Commented:
Hi,

I have solved the problem by adding an extra row in datatable.

Thank you for advice me.
0
 
Rahul Goel ITILSenior Consultant - DeloitteCommented:
You can use DataList_ItemDataBound event to fill that area and apply the css there


0
 
dotsandcomsAuthor Commented:
what code should i write in the event ? can you pls give me hint.
0
All Courses

From novice to tech pro — start learning today.