16,018,973 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Mandy Nagra (Top 37 by date)
Mandy Nagra
30-Jul-13 5:44am
View
Dim comm As New Common
Private EditRow As Integer = -1
Private Sub DataGridView1_EditingControlShowing(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewEditingControlShowingEventArgs) Handles DataGridView1.EditingControlShowing
EditRow = DataGridView1.CurrentRow.Index
If DataGridView1.CurrentCellAddress.X = 0 Then
'Handle the event(s) of the control while we are editing.
Me.column0ComboBox = DirectCast(e.Control, ComboBox)
End If
End Sub
Private Sub DataGridView1_CellEndEdit(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit
' SendKeys.Send("{TAB}")
Me.column0ComboBox = Nothing
End Sub
Private Sub GridMode_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim dstemp As New DataSet
sqry = "sp_dtgLoad_tbitemmaster"
SqlCom = New SqlCommand(sqry, mycon)
SqlCom.CommandType = CommandType.StoredProcedure
SqlCom.Parameters.Add("@code ", SqlDbType.BigInt).Value = 1
SqlCom.Parameters.Add("@itemid", SqlDbType.BigInt).Value = 0
AdpComm = New SqlDataAdapter(SqlCom)
AdpComm.Fill(dstemp, "tbItemMasterHeader")
DataGridView1.DataSource = dstemp.Tables("tbBranchMaster")
Try
Dim dstemp12 As New DataSet
sqry = "sp_dtgLoad_tbitemmaster"
SqlCom = New SqlCommand(sqry, mycon)
SqlCom.CommandType = CommandType.StoredProcedure
SqlCom.Parameters.Add("@code ", SqlDbType.BigInt).Value = 1
SqlCom.Parameters.Add("@itemid", SqlDbType.BigInt).Value = 0
AdpComm = New SqlDataAdapter(SqlCom)
AdpComm.Fill(dstemp12, "tbBankMaster")
Column1.ValueMember = "itemId"
Column1.DisplayMember = "Itemname"
'DataGridView1.Rows.Add(1)
Column1.DataSource = dstemp12.Tables(0)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
'
Private WithEvents column0ComboBox As ComboBox
Private Sub column_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles column0ComboBox.SelectedIndexChanged
Dim dstemp As New DataSet
sqry = "sp_binditemsize"
SqlCom = New SqlCommand(sqry, mycon)
SqlCom.CommandType = CommandType.StoredProcedure
SqlCom.Parameters.Add("@code ", SqlDbType.BigInt).Value = 1
SqlCom.Parameters.Add("@itemid", SqlDbType.BigInt).Value = column0ComboBox.SelectedValue
AdpComm = New SqlDataAdapter(SqlCom)
AdpComm.Fill(dstemp, "tbItemMasterHeader")
DataGridView1.DataSource = dstemp.Tables("tbBranchMaster")
Try
Dim dstemp12 As New DataSet
sqry = "sp_binditemsize"
SqlCom = New SqlCommand(sqry, mycon)
SqlCom.CommandType = CommandType.StoredProcedure
SqlCom.Parameters.Add("@code ", SqlDbType.BigInt).Value = 1
SqlCom.Parameters.Add("@itemid", SqlDbType.BigInt).Value = column0ComboBox.SelectedValue
AdpComm = New SqlDataAdapter(SqlCom)
AdpComm.Fill(dstemp12, "tbBankMaster")
Column2.ValueMember = "itemsizeid"
Column2.DisplayMember = "SizeName"
Column2.DataSource = dstemp12.Tables(0)
'DataGridView1.Rows(EditRow).Cells(1).Value = dstemp12.Tables(0).Columns(3)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Private Sub DataGridView1_DataError(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewDataErrorEventArgs) Handles DataGridView1.DataError
If (e.Context = (DataGridViewDataErrorContexts.Formatting Or DataGridViewDataErrorContexts.PreferredSize)) Then
e.ThrowException = False
End If
End Sub
Mandy Nagra
30-Jul-13 5:28am
View
problem is that when i select first row it work porperly .. but in second row second column it does't work properly .. it will showing some value as it show in first row second column
Mandy Nagra
30-Jul-13 5:03am
View
i want do do same in datagridview
Mandy Nagra
30-Jul-13 5:01am
View
in first row it work proprly.. but when i go to second row it will show same value in second row and 2nd column in datagridview
Mandy Nagra
29-Jul-13 8:32am
View
i want in datagridview cascading
Mandy Nagra
29-Jul-13 7:32am
View
i want in vb.net
Mandy Nagra
29-Jul-13 6:22am
View
throught this code .... i have select first combobox corressponding to first 2nd combobox fill but when i m going to 2nd row column2 shows the same value
Mandy Nagra
29-Jul-13 6:20am
View
Private Sub column_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles column0ComboBox.SelectedIndexChanged
Dim dstemp As New DataSet
sqry = "sp_binditemsize"
SqlCom = New SqlCommand(sqry, mycon)
SqlCom.CommandType = CommandType.StoredProcedure
SqlCom.Parameters.Add("@code ", SqlDbType.BigInt).Value = 1
SqlCom.Parameters.Add("@itemid", SqlDbType.BigInt).Value = column0ComboBox.SelectedValue
AdpComm = New SqlDataAdapter(SqlCom)
AdpComm.Fill(dstemp, "tbItemMasterHeader")
DataGridView1.DataSource = dstemp.Tables("tbBranchMaster")
Try
Dim dstemp12 As New DataSet
sqry = "sp_binditemsize"
SqlCom = New SqlCommand(sqry, mycon)
SqlCom.CommandType = CommandType.StoredProcedure
SqlCom.Parameters.Add("@code ", SqlDbType.BigInt).Value = 1
SqlCom.Parameters.Add("@itemid", SqlDbType.BigInt).Value = column0ComboBox.SelectedValue
AdpComm = New SqlDataAdapter(SqlCom)
AdpComm.Fill(dstemp12, "tbBankMaster")
Column2.ValueMember = "itemsizeid"
Column2.DisplayMember = "SizeName"
Column2.DataSource = dstemp12.Tables(0)
'If (DataGridView1.CurrentRow.Index = 2) Then
DataGridView1.Rows(DataGridView1.CurrentRow.Index).Cells(1).Value = dstemp12.Tables(0).Columns(3)
'End If
'DataGridView1.Rows(DataGridView1.CurrentRow.Index).Cells(1).Value = dstemp12.Tables(0)
'B = Column2.ValueMember.ToString()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Mandy Nagra
29-Jul-13 6:18am
View
Deleted
i have tried on selectindexchange event in datagridview where in select column1 combobox the in column2 combobox value will show but whem i m going to second row it will show same value i want in 2nd row the value of column2 according to i have selected in column1
Mandy Nagra
29-Jul-13 5:45am
View
with code ....
Mandy Nagra
4-Jul-13 5:35am
View
i have 64 barcode on fir page i have taken only 50 barcode and on next page in have take remaining 14... in printpreview only first page shown next page does't not show
Mandy Nagra
4-May-13 8:57am
View
i want to show tow printed page in preview
Mandy Nagra
4-May-13 8:53am
View
If (cmptotal > NoofbarcodeDrawninonepage) Then
e.HasMorePages = True
cmptotal = cmptotal - NoofbarcodeDrawninonepage
Else
e.HasMorePages = False
End If
Mandy Nagra
4-May-13 7:54am
View
printed 50 barcode on one page
Mandy Nagra
4-May-13 6:42am
View
tel me some syntax for use
Mandy Nagra
4-May-13 6:41am
View
please help me in this sir
Mandy Nagra
3-May-13 3:01am
View
please help me
Mandy Nagra
9-Mar-13 1:31am
View
Please Help Me out
Mandy Nagra
7-Mar-13 6:39am
View
yes ur ryt
Mandy Nagra
2-Feb-13 7:56am
View
m just confused
because i want after redirect to first form from second that checkboxes are true that i have done earler
Mandy Nagra
2-Feb-13 7:03am
View
how??
Mandy Nagra
2-Feb-13 7:01am
View
i want it should be checked
Mandy Nagra
2-Feb-13 7:00am
View
i have redirect from one form to another nw redirect to first form checkbox remain unchecked
Mandy Nagra
18-Dec-12 3:11am
View
drictly in excl sheet
Mandy Nagra
5-Nov-12 3:12am
View
plzz anyboday help me
Mandy Nagra
3-Nov-12 1:34am
View
plzz tel me sir how it done
Mandy Nagra
3-Nov-12 1:28am
View
yes
Mandy Nagra
3-Nov-12 1:25am
View
i want only save current date and coming to next after current date only saved...in my project not back date
Mandy Nagra
1-Oct-12 5:32am
View
its not working
Mandy Nagra
1-Oct-12 1:13am
View
i want on click of menus the submenus will be open..
Mandy Nagra
29-Sep-12 8:50am
View
no its not helpfull give some easy ways pllz
Mandy Nagra
15-Sep-12 3:42am
View
i have bookssiue table in which ActualReturndate and ReturnDate r thr nw m making from i want to Calculate difference in days without Add value of fine days in database
Mandy Nagra
15-Sep-12 3:30am
View
lbldiference id date given in gridveiw name to label
Mandy Nagra
15-Sep-12 3:15am
View
if we hv different dates in same table and we want to calculate dat not fixed dates then
Mandy Nagra
15-Sep-12 3:14am
View
Deleted
if we want so different date in same grid then how write not fix dates
Mandy Nagra
15-Sep-12 2:40am
View
i dunt want to use database.... only coding in visual
Mandy Nagra
5-Sep-12 3:05am
View
i just want edit marks
Show More