i am using the loop to add data source for each series i want the chart to show.
aransiola
Posts
-
MSChart with multi-datatables -
MSChart with multi-datatablesI am binding MSChart to a dataset filled with 2 or more datatables. The MsChart is showing only the last datatable. My code is pasted below: ------------------------------------------------------- Private Sub ProductionChart() 'use collection to collect Selected product ' Dim Col As New Collection For Each lst As ListItem In chkWStringList.Items If lst.Selected Then Col.Add(lst.Text, lst.Text) End If Next oDs = New DataSet oDs = oTier.Production3(Col, Date.Parse(Date1.Text), Date.Parse(Date2.Text)) With Chart1 'Create new chart area for original series Dim ca As ChartArea = .ChartAreas.Add("ca2") .Titles(0).Text = "Chart" .Titles(0).Font = New Font("Trebuchet", 14, FontStyle.Bold) .ChartAreas("ca2").AxisX.TitleFont = New Font("Verdana", 10, FontStyle.Bold) .ChartAreas("ca2").AxisX.Title = "Date" .ChartAreas("ca2").AxisY.Title = "Production" '.Series.Clear() For j As Integer = 1 To Col.Count Dim oSeries As Series = New Series(Col.Item(j)) .Series.Add(oSeries) 'Give names to Series oSeries.Name = Col.Item(j).ToString .DataSource = oDs.Tables(j - 1) oSeries.ChartArea = ca.Name oSeries.ChartType = SeriesChartType.Line oSeries.XValueMember = "Date" oSeries.XValueType = Charting.ChartValueType.Date oSeries.YValueMembers = "Production" oSeries.BorderWidth = 3 Next .DataBind() .Visible = True End With End Sub
-
.ndf SQL Server databaseHow could i access the objects(tables,views) in SQL Server Secondary datafile(.ndf). pls help
-
Gridview Column widthits not working yet. there is no asp:BoundColumn. I used asp:BoundField yet its not working
-
Gridview Column widthautogeneratecolumn is set to false
-
Gridview Column widthI have been battling with setting gridview column width. Can some one help me out? I have a gridview that is bound to a datatable. Im using a session object as the datasource to my datatable and i want the gridview column width to be set to some value. Below are my various trial Protected Sub grdDetails_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles grdDetails.RowDataBound 'If e.Row.RowType = DataControlRowType.Header Then ' 'If e.Row.RowType = DataControlRowType.DataRow Then ' 'e.Row.Cells(0).Width = New Unit(1400, UnitType.Pixel) ' 'e.Row.Cells(1).Width = CInt(Server.HtmlDecode(2400)) ' e.Row.Cells(0).Attributes.Add("style", "width: 100px;") ' e.Row.Cells(1).Attributes.Add("style", "width: 100px;") 'End If 'grdDetails.Columns(1).ItemStyle.Width = CInt(Server.HtmlDecode(1400)) 'grdDetails.Columns(2).ItemStyle.Width = CInt(Server.HtmlDecode(2400)) If e.Row.RowType = DataControlRowType.DataRow Then e.Row.Cells(0).Text = Date.Parse(e.Row.Cells(0).Text).ToString("d") 'format the numeric values For j As Integer = 3 To 5 e.Row.Cells(j).CssClass = "ralign" 'Amount Col e.Row.Cells(j).Text = Decimal.Parse(e.Row.Cells(j).Text).ToString("n") Next 'ElseIf e.Row.RowType = DataControlRowType.Footer Then ' 'display summary data in the appropriate cell ' e.Row.Cells(4).Text = "Total :" ' e.Row.Cells(5).Text = GetTotal().ToString("n") End If End Sub any help will be appreciated
-
Remember Me Next timeRemember Me Next time checkbox on Login Server control. if checked when a user is loging on, next time the user logs on, no need to type the user id again. but the checkbox is checked, and the login server control keeps asking for the userid
-
Remember Me Next timeRemember Me Next time is notworkingin asp.net2.0 login control pls help
-
gridview cell widthplease how do i set the gridview cell width? I am binding the gridview to a datatable. I wrote something like this in the gridview_databound event grdview.cells(0).width=100 but it does not work pls help
-
Gridview column widthCan someone help me with how to change gridview column width in asp.net. I am using a session object(datatable) as the datasource to the grid view. I have tried the gridview_databound event to code something like this grv.cells(0).columnwidth=100 but it did not work pls help
-
AttachDBFilenameThis parameter of Database connection string is pointing to my local drive like C:\Invoice\myData.mdf on teh development machine. How can i change this to reflect the hosting server path? t.aransiola
-
AttachDBFilenameThis parameter of Database connection string is pointing to my local drive like C:\Invoice\myData.mdf on teh development machine. How can i change this to reflect the hosting server path?
-
AutoResponder in asp.net email -
showing a modal form at a locationhow can i show a modal window form at a cordinates im using vb.net 2005 and im doing something like this dim oForm as new InvoiceForm with oform .showmodal() .left=txtID.left .top=txtid.top+txtid.height end with t.aransiola
-
How to program a digital persona fingerprint scanner in VB? [modified]if your device is among teh device list supported by grfinger, teh code will work. Check the griaule site to check the fingerprint devices supported. I am using CrossMatch300 finger print reader and has been working with the sample code from grfinger good luck t.aransiola
-
positioning a textbox in the AXMSFlexgrid celli need an editable grid like Flexgrid in vb6.0. There is AXMSFlexgrid in .net 2005 that works like vb6.0 flexgrid just that the properties and methods arent teh same See my code below, if there is any help u can render thanks positioning a textbox control in the grid cell I am using this control in my vb.net2005 project im using something like this in teh FG_Keypress event Private Sub Fg_KeyPressEvent(ByVal sender As Object, ByVal e As AxMSFlexGridLib.DMSFlexGridEvents_KeyPressEvent) Handles Fg.KeyPressEvent Select Case e.keyAscii Case 13 e.keyAscii = 0 Fg.Focus() Exit Sub End Select With Fg ' block the qty remaining column not to accept any entry Select Case .Col Case 0 EditBox.Enabled = False Exit Sub Case 1 'to upcase col1 cell entry e.keyAscii = Asc(UCase(Chr(e.keyAscii))) EditBox.Enabled = True End Select EditBox.Text = Chr(e.keyAscii) EditBox.SelectionStart = 1 EditBox.Visible = True ' 'note: the problem is here, ' EditBox.SetBounds(.Left + .CellLeft, .Top + .CellTop, .CellWidth, .CellHeight) EditBox.Focus() End With btnSave.Enabled = True End Sub the code works fine but the EditBox wasnot well positioned as expected. I just converted this portion that is working in vb6 to vsb.net 2005. While typing i wouldnt see the text box, but once the fg gotfocused, the content displays on teh grid t.aransiola
-
How to program a digital persona fingerprint scanner in VB? [modified]get the sdk that come with your finger print device. Some device and sdks come with sample code. I have used CrossMatch fingerprint reader with grFinger sdks and is working fine you may visit www.griaule.com good luck t.aransiola
-
positioning a textbox in the AXMSFlexgrid cellI am writng an editable grid in my vb.net2005 project. The code is working fine but text box is not well positioned in the grid cell, for me to see what im entering in teh text box im using something like this in teh FG_Keypress event textbox.setbound(fg.left+fgcell.left,fg.top+fgcell.top,fgcell.width,fgcell.height) any help will be appreciated. t.aransiola
-
Window Form Location vb.net2005The code as shown below worked for non-modal window form but did not position modal window forms. even setting the cordinates before showing the window form dim myForm as New Invoice myForm.show myForm.left = listview.left myForm.top=listview.top any further discoveries to positioning modal forms will be appreciated. thanks thank u t.aransiola
-
Connection string in VB.Net 2003Oracle & SQL Server Databases are server-based database. They are not Filedatabase like Microsoft Access. So they cannot be open like you open ur access db file. The Oracle Database like SQL Server has an Enterprise Console where you can manage the database t.aransiola