15,902,189 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 Javascript questions
View Visual Basic questions
View Python 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 Arvind61 (Top 20 by date)
Arvind61
28-Aug-18 9:24am
View
Please find the code below.
Private Sub showNormalRow(ByVal classRowId As Integer, ByVal sectionRowId As Integer)
Static intRowNo As Integer = 0
dsCombined.Tables(0).Rows.Add(dsDataDsCombined.Tables(0).Rows(0).Item(0), _
dsDataDsCombined.Tables(0).Rows(0).Item(1), strClassTeacherSelected)
If intRowNo > 0 Then
dgvRecords.Rows.Add()
End If
'Dim colClassName As New DataGridViewTextBoxColumn
colClassName.Name = "Class_Name"
colClassName.HeaderText = "Class Name"
colClassName.ReadOnly = True
colClassName.SortMode = DataGridViewColumnSortMode.NotSortable
Dim colClassNameCell As New DataGridViewTextBoxCell
colClassNameCell.Value = dsCombined.Tables(0).Rows(0)(0)
colClassName.CellTemplate = colClassNameCell
Static booFirstTimeClass As Boolean = True
If booFirstTimeClass Then
dgvRecords.Columns.Add(colClassName)
booFirstTimeClass = False
End If
dgvRecords(0, intRowNo).Value = dsCombined.Tables(0).Rows(intRowNo)(0)
'Dim colSectionName As New DataGridViewTextBoxColumn
colSectionName.Name = "Section_Name"
colSectionName.HeaderText = "Section Name"
colSectionName.ReadOnly = True
colSectionName.SortMode = DataGridViewColumnSortMode.NotSortable
Static booFirstTimeSection As Boolean = True
If booFirstTimeSection Then
dgvRecords.Columns.Add(colSectionName)
booFirstTimeSection = False
End If
dgvRecords(1, intRowNo).Value = dsCombined.Tables(0).Rows(intRowNo)(1)
'Dim colcmbClassTeacher As New DataGridViewTextBoxColumn
colcmbClassTeacher.HeaderText = "Class Teacher"
colcmbClassTeacher.ReadOnly = True
colcmbClassTeacher.SortMode = DataGridViewColumnSortMode.NotSortable
Static booFirstTimeClassTeacher As Boolean = True
If booFirstTimeClassTeacher Then
dgvRecords.Columns.Add(colcmbClassTeacher)
booFirstTimeClassTeacher = False
End If
dgvRecords(2, intRowNo).Value = dsCombined.Tables(0).Rows(0)(2)
Dim objclsConnection As clsConnection
Dim strSql As String
Dim intNoOfOtionalSubjs As Integer
Static dsComboBoxSubject As DataSet
Static dsComboBoxSubjectForOptionalSubjts As DataSet
Static booEnteredFirstTime As Boolean = True
If booEnteredFirstTime Then
dsComboBoxSubjectForOptionalSubjts = New DataSet()
dsComboBoxSubjectForOptionalSubjts.Clear()
strSql = generateSqlForOptionalSubjsForThisClassSec(classRowId, sectionRowId)
objclsConnection = New clsConnection(strSql, "select", "Tbl_Eliminated_Subj")
dsComboBoxSubjectForOptionalSubjts = objclsConnection.readyDataSet()
intNoOfOtionalSubjs = dsComboBoxSubjectForOptionalSubjts.Tables(0).Rows.Count
dsComboBoxSubject = New DataSet()
dsComboBoxSubject.Clear()
strSql = "select SubjectID, Subject_Name from Tbl_Subject order by SubjectID"
objclsConnection = New clsConnection(strSql, "select", "Tbl_Subject")
dsComboBoxSubject = objclsConnection.readyDataSet()
booEnteredFirstTime = False
End If
intNoOfOtionalSubjs -= 1
'Dim colcmbSubject As New DataGridViewComboBoxColumn
colcmbSubject.Name = "Subject_Name"
colcmbSubject.HeaderText = "Subject"
colcmbSubject.SortMode = DataGridViewColumnSortMode.NotSortable
Dim colcmbSubjectCell As New DataGridViewComboBoxCell
If intNoOfOtionalSubjs >= 0 Then
colcmbSubjectCell.DataSource = dsComboBoxSubjectForOptionalSubjts.Tables(0)
Else
colcmbSubjectCell.DataSource = dsComboBoxSubject.Tables(0)
End If
colcmbSubjectCell.ValueMember = "SubjectID"
colcmbSubjectCell.DisplayMember = "Subject_Name"
colcmbSubject.CellTem
Arvind61
27-Aug-18 17:00pm
View
if you want more info please let me know.
Arvind61
27-Aug-18 16:56pm
View
I've made a function that adds a new row when called.So whenever I call this function called AddNewRow(), It adds one row.The row doesn't disappear, only the entries in the textboxes (and not the combos) in the 'Previous' rows disappear(not the current row). Combos remain same.
Arvind61
24-Nov-17 4:46am
View
Thank for your reply. The Customer Information is coming from the user who enters it in the Customer Information Dialog Box ( Created in the User interface Editor ) during installation. I want to read the Name and Organization programmatically and use it in my application for which the installer is created. For e.g. I want to write the Name and Organization of the person installing this application into a Label in one of the forms in this Application.
Arvind61
11-Jul-17 14:28pm
View
My installation includes the required build ie 3.0.40818 of s3. I checked it from Add/Remove programs. But the problem continues.
Arvind61
11-Jul-17 13:07pm
View
The computer was formatted and vs 2010 with sp1 was reinstalled. Hence Silverlight 3 was reinstalled along with VS 2010 installation.You mean there is this bug in the original ver. of Silverlight 3 that came with VS 2010 ?
Arvind61
11-Jul-17 12:32pm
View
Also tried installing Silverlight5_Tools.exe. The problem persists.
Arvind61
11-Jul-17 12:15pm
View
It is same as installing Silverlight_developer.exe(same as above in solution 1 above). It says a newer version already installed.
Arvind61
11-Jul-17 9:58am
View
When I download and Install the kit it says "A newer version is already installed."
Arvind61
26-May-17 15:40pm
View
Thanks for the advise.I'll try that
Arvind61
26-May-17 6:25am
View
I've tried this. Still the ContentPlaceHolder does not show up in the design view.
Arvind61
26-May-17 6:16am
View
Thanks for the reply. Could you please explain with a few lines of code.
Arvind61
26-May-17 5:59am
View
Thanks CHill60. I will try the link advanced TextBox.
Arvind61
26-May-17 5:33am
View
Actually the column contains mobile numbers. Now if I generate random mobile nos. they would also be real. Using unreadable characters will spoil the appearance of the form. I ve seen blurring of data in some applications but I am not able to implement it.
Arvind61
26-May-17 1:09am
View
Its a sensitive data. And the form containing the data has to be published for demo purposes.
Arvind61
28-Jan-17 10:12am
View
Thanks,I shall try
Arvind61
28-Jan-17 7:49am
View
But the project is built using DataGrid
Arvind61
28-Jan-17 5:29am
View
Thanks for the reply. Datagrid comes from two namespaces System.Windows.controls and system.windows.forms. My datagrid comes from system.windows.forms . Hence the application cannot include from the first namespaces.There is ambiguity in datagrid.How do I resolve this.
Arvind61
28-Jan-17 4:48am
View
Datagrid does not have this property.
Arvind61
12-Sep-16 12:08pm
View
Thanks RossMW. The option 1. provided by you has worked !.I am out of a deadlock in my project.Thank you very much.
Show More