2
Answers

Fix the Size of DataList

Photo of Vikram

Vikram

14y
5.3k
1
Hi,
 
     In my application, I am using DataList. Here I use three different Item into the Item Template. One is data field another is GridView and One Link Button. Now My problem is with the size of the Gridview. When I attach DataSource to GridView the layout get changed and get out of container. So I want to set its size of the Item of DataList at design time so that after databind() of GridView it should not get out of the container.

   Any Help Appreciated 

Thanks,
 
  VIkram

Answers (2)

0
Photo of Vulpes
NA 98.3k 1.5m 12y
Try:

SELECT denumire FROM dbo.client WHERE UPPER(SUBSTRING(denumire, 1, 2)) = 'RO'
Accepted
0
Photo of Violeta Popa
NA 137 110.7k 12y
Thanks, it worked. I have one more question, using DataBound and Query creates a Fillby ToolStrip and the comboBox is filled only when I click on the Fillby Tool. Is there a way to fill automatically the combobox? when form loads or something like that?
0
Photo of Violeta Popa
NA 137 110.7k 12y
thanks, but still doesn't work, now doesn't display anything :(
0
Photo of Vishal Gilbile
NA 13.9k 2.9m 12y
Hello Friend,
            Just replace your query with the following

SELECT denumire FROM dbo.client WHERE denumire like 'RO'.


Hope that solves your problem.


With Regards,
Vishal Gilbile