Talking about NULLABLE datagridviewcomboboxcolumn (vbnet 2005)
18-Sep-0909 Leave a comment
IT and business subjects
18-Sep-0909 Leave a comment
09-Sep-0909 Leave a comment
04-Sep-0909 Leave a comment
Dim ds As New dsA
Dim ta As New dsATableAdapters.ATableAdapter
ta.Fill(ds.A)
Dim bs As New Windows.Forms.BindingSource(ds, ds.A.TableName)
Dim ReportDataSource1 As ReportDataSource = New ReportDataSource
ReportDataSource1.Name = "dsA_A" 'Important to use datasource name as used on report
ReportDataSource1.Value = bs
With Me.ReportViewer1.LocalReport
.DataSources.Add(ReportDataSource1)
.DataSources(0).Value = bs
End With
27-Aug-0909 Leave a comment
20-Aug-0909 Leave a comment
11-Aug-0909 Leave a comment
Either Dim object as New instance inside loop. Then set to Nothing before next loop.
Do Until rsTD.EOF
Dim cTimeSheet As New clsTimeSheet
cTimeSheet.Employee.EmpeeNo = rsTD!EmpeeNo
Call cJS.colTimeSheets.AddTimeSheet(cTimeSheet, lngMaxEmp)
Set cTimeSheet = Nothing
rsTD.MoveNext
Loop
Or following with or without first New
Dim cTimeSheet As New clsTimeSheet
Do Until rsTD.EOF
Set cTimeSheet = New clsTimeSheet
cTimeSheet.Employee.EmpeeNo = rsTD!EmpeeNo
Call cJS.colTimeSheets.AddTimeSheet(cTimeSheet, lngMaxEmp)
rsTD.MoveNext
Loop
04-Aug-0909 Leave a comment
I am very new to WPF. So here goes:
<GridViewColumn Header=“Date Input” Width=“150”>
<GridViewColumn.CellTemplate >
<DataTemplate >
<TextBox Text=“{Binding Path=DateInput, StringFormat=’dd-MMM-yy’}” />
</DataTemplate>
</GridViewColumn.CellTemplate></GridViewColumn>
04-Aug-0909 Leave a comment
Dim list As System.Collections.ObjectModel.ReadOnlyCollection(Of String)
If list.Count = 1 Then
03-Aug-0909 Leave a comment
Publicfunction tablesUsedByAReport(myReportName asstring)asstringDim m_report As CRAXDRT.Report, _ m_crystal As CRAXDRT.Application, _ m_tablesUsedByAReport AsStringDim m_table As CRAXDRT.DatabaseTable, _ m_section As CRAXDRT.section, _ m_objet AsObject, _ m_subReport As CRAXDRT.SubreportObjectSet m_crystal =New CRAXDRT.ApplicationSet m_rapport = m_crystal.OpenReport(m_nomRapport,1)'table names in the report'ForEach m_table In m_rapport.Database.tables m_tablesUsedByAReport = m_tablesUsedByAReport & m_table.location &";"Next m_table 'table names in each of the subreports'ForEach m_section In m_rapport.Sections ForEach m_objet In m_section.ReportObjects If m_objet.Kind= crSubreportObject Then Set m_subReport = m_objet Set m_report = m_subReport.OpenSubreport ForEach m_table In m_rapport.Database.tables m_tablesUsedByAReport = m_tablesUsedByAReport & m_table.location &";" Next m_table EndIf Next m_objetNext m_section 'my tables list'tablesUsedByAReport = m_tablesUsedByAReport Endfunction
31-Jul-0909 Leave a comment