-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: AmitBarde
Message 4 in Discussion
Do the following
1. Define the Daytablevw as a class level view
Protected Daytablevw As DataView = New DataView()
2. make DataSource="<%#Daytablevw%>"
3.Paste this procedure in your code
Private Sub ReturnDays()
Dim DayTable As New Data.DataTable()
Dim DayRow As Data.DataRow
Dim Daycolomn As New Data.DataColumn()
Dim ctri As Integer
Daycolomn.DataType = Type.GetType("System.Int32")
Dim daysaet As New Data.DataSet()
DayTable.Columns.Add(Daycolomn)
DayRow = DayTable.NewRow()
For ctri = 1 To 31
DayRow = DayTable.NewRow()
DayRow(0) = ctri
DayTable.Rows.Add(DayRow)
Next
Daytablevw = daytable.defaultview
End Sub
4. Call the procedure in before you bind to the grid.
5. Compile and check
6. If the code is running, please update the MSN Communities website that it has been
solved OR post another query ;-)
Ciao
Amit
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]