[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

!! Rendering ASP:DataGrid Inside DeviceSpecific & Panel

budhy

1/9/2002 11:37:00 AM

Hi All,

I know that is newsgroup not too specific to ASP:DataGrid,
but whether, I want to ask you, why aren't we get the proper appearance of
'font-size' property on DataGridColumn. i couldn't either get
proper appearance of
.........................
<mobile:Form id="Form1" runat="server">
<mobile:Panel id="Panel1" runat="server">
<mobile:DeviceSpecific id="DeviceSpecific1" runat="server">
<Choice xmlns="Mobile HTML3.2 Template" Filter="isHTML32">
<ContentTemplate>
<ASP:DataGrid
id="MyDataGrid"
runat="server"
....................>
<columns>
<asp:ButtonColumn HeaderText="Stock No"
ItemStyle-Font-Size="6pt"
ItemStyle-Wrap="false"

.............................
CommandName="Make" />
<asp:BoundColumn
ItemStyle-Font-Size="6pt"
ItemStyle-Wrap="false"
..............................
</columns>
</ASP:DataGrid>
</ContentTemplate>
</Choice>
</mobile:DeviceSpecific>
</mobile:Panel>
</mobile:Form>

.........................

I've got Results appearence as follow :

Stock# Year Make Model List_Price

MZ02- 2000 Mazda Tribute 26,374
166

MZ03- 2001 Mazda Protege 17,890
177

MZ01- 2001 Mazda Protege 16,881
101

My point was, I don't want the Stock field value to be wrapped to be 2
lines,
I would likely to make it fit on singleline row, by either setting the
property ItemStyle-Wrap="false" or
by making the font smaller, But it seem to be the font appearance inside
the datagrid column
doesn't take effect, even if i had control it through "ItemStyle-Font-Size"
property.

I had placing DataGrid inside the Mobile Panel and also DeviceSpecific
Control,
I assumed, when i placed datagrid beside two of them, the rendering process
of controls other than native mobilecontrol through Mobile device
should be proper. It looks weird for the Mobile Internet Toolkit which
doesn't powered with generic-control which has the facility for placing
dataset
result from database. I saw the DataList / SelectionControl are also usefull
for that kind of purpose,
but they don't have native capability for paging, and sorting like we can do
on DataGrid. I do not found any related topic on the net
discussing about this, some sample out there are too standard not so
complicated. Like all we know, The Screen Size of IPAQ are too
small to fit any all data that might be populated through datagrid we have.
Our requirement here are very strict.
while the Stock field value must to be on singleline, we also don't want to
deal with horizontal scrolling that might appear on our PocketIE.

Should we make the control by ourself.
Or must we populate the data by ASP:Table, make our own custom sorting and
paging, if that so,
adopting Mobile Internet Toolkit Technology was not soo contributing or even
helpful on our project.
It would bring me to very tricky programming situation. Isn't it ?

Please telling me if there is anyone in this newsgroup think that my
problem here are easy to find the solution. this matters are
make frustrating.



Any advise Pls ?


Regards,


Budhy SB


1 Answer

(Andres Sanabria)

1/15/2002 11:31:00 AM

0