Mobiles :: Set No Of Rows & Columns For Textbox?
Apr 26, 2010how i will set No Of Rows & Columns for textbox in Mobile web controls.
View 2 Replieshow i will set No Of Rows & Columns for textbox in Mobile web controls.
View 2 RepliesI'm binding a gridview from a webservice with 30 columns and 10 rows, I need to print the same in a PORTRAIT, for that i decided to display columns as rows and
rows as columns like below:
EMP1 1 2 3 4
EMP2 1 2 3 4
I created a gridview that is made up of 4 gridviews and using a stored procedure to populate it. I create columns at runtime because the number of columns changes all the time.To make the grids editable I am adding template fields at runtime as I create the columns, this is to ensure that a user is able to edit the cells and some foot values update. Reason why I have four grids is to freeze rows and columns like in excel using javascript. The problem is that performance is very bad especially in IE, the grids take a long time to load. I am not sure if this is caused by the data load or the creation of text boxes. see some of the code below for my _aspx page:
[Code]....
I have done some research research on my problem never found a good tutorial or post to follow. I have an mobile control ObjectList filled with a generic collection of object. This displays the data in tabular form with no problem and I have a column named amount which has a content of type decimal. Now, I wanted to calculate/display the sum of the amount column at the bottom part using the footer template.
As an example, here is my mobile form page (using ObjectList):
[Code]....
and here is my code behind:
[Code]....
What I want to do is to fill-in the mobile label control (lblTotalAmount) with the value of the TotalAmount
variable on my code behind but it think the label control is always null.
I am looking to 'hypothetically' post nine rows of data with column headers for 15 different columns. That would be too many textboxes. All the data is directly calculated in VB.net. I want to insert some sort of spreadsheet-type deal with the tool "Table" or something I heard about "Gridview?".
View 2 Repliesi want to make a datagrid with 2 columns and many rows the columns i want to have databinding with a datatable
i want the 1 row 1 column of datagrid have data from 1 row of datatable
i want the 1 row 2 column of datagrid have data from 2 row of datatable
i want the 2 row 1 column of datagrid have data from 3 row of datatable
i want the 2 row 2 column of datagrid have data from 4 row of datatable
......
......
i use something like this
[code]...
but i have two times the same in tha datagrid left and right
This is how my table in db looks like
Remarks Id Remark
1 Rem1_aaa
2 Rem1_ccc
1 Rem1_bbb
2 Rem1_ddd
i want the output as:
Id Column1 Column2
1 Rem1_aaa Rem1_bbb
2 Rem2_ccc Rem2_ddd
I have a table think as table1, with 3 columns
col1 col2 col3 -- Columns
Y N 1 -- Data
but i want
colname val
col1 Y
col2 N
col3 1
I have a CSV file (with semicolon field separator) of 150MB (about 2 milion rows and 35 columns).
Now I want to loop through the CSV per row and get each row column.
I want to add rows and columns to grid dynamically. plz give me right code for it.
View 1 Replieshow to get the multiline text box in the mobile control?I want to create a contact us page and need multiple lines text box to input the comments.
View 3 RepliesThis is datat table format :
TagName Timestamp Value
Tag1 21-2-2011 12
Tag1 22-2-2011 1
Tag2 21-2-2011 13
I want in this Format
TimeStamp Tag1 Tag2
21-2-2011 12 13
22-2-2011 1 0
Given a GridView control defined like this:
[code]....
The "FilePath" and "AttachmentID" fields are being set correctly in the grid, however, the CheckBox control is never set correctly; it is always unchecked.
My question:
How do I get this CheckBox field set from C# as I'm creating the new row?
P.S. I am not sure if I am creating the row correctly in the first place.
I am trying to set the top gridview's column's width to the body's column width and then the left columns height to the body's coloumns height. Here is my code:
<form id="form1" runat="server">
<div>
<asp:Table ID="Table1" runat="server">
<asp:TableRow>
[Code]....
I have a table like this..
---------------------------------------------------
ItemID ItemName Qty CenterID
---------------------------------------------------
1 X 10 52
1 X 6 53
1 X 4 57
2 y 6 58
I SHOULD convert the abouve table like this..
ItemID ItemName Qty CenterA centerB CenterC CenterD
---------------------------------------------------
1 X 20 10 6 4 0
2 Y 6 0 0 0 6
I've got a grid view on my form that is bound to a data table at run tim. The data table is returned by a function rather than direct from the DB so I can't set the datasource at runtime.
I bind the grid in the page_load event like this:-
Code:
Dim _dt As System.Data.DataTable
_dt = _srvc.GetVinylShutters(0)
_dt.Rows.Add(_dt.NewRow)
grdShutters.DataSource = _dt
grdShutters.DataBind()
(_dt.Rows.Add(_dt.NewRow) is just there to add a blank row in, otherwise I wasn't seeing any columns at all)
I've then got the following snippet which I want to use to hide some underlying columns:-
Code:
For Each col As DataControlField In grdShutters.Columns
Select Case col.HeaderText
Case "OrderID", _
"ShutterID", _
"ModelID", _
[Code] ...
The thing is, wherever I put this it doesn't seem to hide the columns. If I break into the code I can see that grdShutters.Columns.Count equals zero althought I can see that the bound datatable has 38 columns.
I've tried the Page's Load, LoadComplete and PreRenderComplete events as well as the gridview's DataBound, RowDataBound and RowCreated events. I get teh same result in all of them. The grid doesn't actually have any columns until it appears on the screen.
I'm developing a mobile application in ASP.NET and C#.The focus control does not work for windows mobile browser 5.0.QUESTIONDoes anyone have code for C# that can set the focus on a textbox for windows mobile 5.0 internet explorer?
View 2 RepliesI am trying to set come columns to invisible after all of the rows are binded but I'm having trouble. I'm hiding columns that have empty data which I save in a session variable. This works fine. Then I tried changing the columns visible property using the ColumnByName routine in the DataBound but that must be the wrong event because I do not think the columns exist yet.
The columns are autogenerated btw.
Where can I set the columns properties after it has binded? Can i do this before the columns are autogenerated the the screen itself?
Table1
t1c1 t1c2 t1c3
1 1 jim
2 2 ruth
3 4 paul
4 8 sam
5 16 NA
Table2 ( Need this)
t2c1 t2c2 t2c3 t2c4 t2c5
10 1 1 jim 2010-02-03
10 2 1 ruth 2010-02-03
10 4 1 paul 2010-02-03
10 8 1 sam 2010-02-03
The tricky part I have to perform is to copy rows( only t1c2 -> t2c2, t1c3->t2c4 columns) untill I see NA(Not applicable string) in t1c3 to Table2 putting (10 in t2c1, 1 in t2c3, current date in t2c5 columns for all rows).
How can I loop through table and row that have an attribute id or name to get inner text in deep down in each td cell? I work on asp.net, c#, and the newest html agility package.
An html file have several tables. One of them has an attribute id=main-part. In that identified table, there are many rows. Some of those rows have same attribute name=display. In those named rows, there are many columns which I have to extract text from. Something like this:
<body>
<table>
</table>
<table>
[Code]....
Gridview-
Id Name Initial
1 abc A
2 def B
3 ghi C
After transposing,I want it to be like this-
Id 1 2 3
Name abc def ghi
Initial A B C
how to transpose in c# with code and if it is made as a function then how can I call it?I'm new to c#.
How to search text from Contacts/Tasks/Notes using textbox? I mean if I type "Test" he should find any Contacts/Tasks/Notes that contain word "test" in: tasks name, person name, person surname, person address, telephone number and notes.
View 1 Repliesim using sqlbulkcopy to import all the columns and rows in an excel file to a database. My question is, if my database has 1 more extra column which i have to map it to a session variable and that extra column in the database is not found in the excel, isit possible to do something like dat?
View 3 RepliesI have a IEnumerable result, passed to my view. Now, I want to display five elements for my Model in one row and next five in second row. How can I do that?
View 1 RepliesI put in my page 1 table like grid with this style:
header of columns are select from table persons(so number of them are dynamic)
header of each row are select from table goods(so number of them are dynamic)
in table , in each cell,show the price & the date ,that this person,buy this goods
for example,in may 2008 ,Jack&sara buy pencil.so in front of pencil&buttom of jack we write his price and in front of pencil&buttom of sara we write her price.
so this table has 2 column & 1 row
in may 2009,
Jack&sara buy pencil.so in front of pencil&buttom of jack we write his price and in front of pencil&buttom of sara we write her price.
and jhon buy pen & suzzan buy book so this table has 4 column & 3 row
Price Date
Price Date
Price Date
Price Date
Pencil
Pen
book
then I want in each cell,I have 1 CHECKBOX that user of my program,checked each on that want. how can I design my page?
is ther any component?or I must create <TABLE> dynamically