16,017,200 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 .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 Member 12197595 (Top 11 by date)
Member 12197595
1-Feb-16 23:32pm
View
Thank you sir.. But my drop down list populate all country name as well as state name using this code..
Then I want to display which country is user selected ..This is not working in my code.. I cant access what is user selected.. Always it shows -1 . (When user select India, drCurrentRow["Country"] = ddl_country.Text; it show -1 not India.. and for all other country )
Member 12197595
17-Jan-16 22:45pm
View
show error in this line
dgv_product.CellDoubleClick -= new DataGridViewCellEventHandler(dgv_product.CellDoubleClick);
error is,
The event 'System.Windows.Forms.DataGridView.CellDoubleClick' can only appear on the left hand side of += or -=
When form_2 is activate by clicking the button. then I want to disable the event..
Member 12197595
17-Jan-16 22:39pm
View
The event 'System.Windows.Forms.DataGridView.CellDoubleClick' can only appear on the left hand side of += or -=
this is the error..
Member 12197595
16-Jan-16 6:25am
View
Thank you sir. But I need the code for disable the datagridview celldoubleclick event.
How can I do it?
my code show error in this line
dgv_product.CellDoubleClick -= new DataGridViewCellEventHandler(dgv_product.CellDoubleClick);
Member 12197595
11-Jan-16 4:12am
View
Thank you sir. But these all about how can make a auto complete text box. My first cell is already an auto complete cell. My requirement is, the auto complete text box contains number of data. when cursor move upward or downward in the auto complete text box(here register.no) the next cell automatically shown student name. For this which event is used?
Member 12197595
11-Jan-16 4:12am
View
Thank you sir. But these all about how can make a auto complete text box. My first cell is already an auto complete cell. My requirement is, the auto complete text box contains number of data. when cursor move upward or downward in the auto complete text box(here register.no) the next cell automatically shown student name. For this which event is used?
Member 12197595
30-Dec-15 23:22pm
View
Thank you sir. My work is this.. is it correct?
private void dgv_student_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
Sp_student cuss = new Sp_student();
try
{
foreach (DataGridViewRow row in dgv_student.Rows)
{
if (!row.IsNewRow)
{
k = dgv_student.Rows[e.RowIndex].Cells[1].Value.ToString();
if (k != "")
{
dgv_student.Rows[e.RowIndex].Cells[2].Value = cuss.namefind(k);
}
if (dgv_student.Rows[e.RowIndex].Cells[3].Value != null)
{
string k=dgv_student.Rows[e.RowIndex].Cells[3].Value;
dgv_student.Rows[e.RowIndex].Cells[4].Value = cuss.findschool(k);
}
}
}
}
catch { }
}
Member 12197595
30-Dec-15 23:21pm
View
My code
private void dgv_student_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
Sp_student cuss = new Sp_student();
try
{
foreach (DataGridViewRow row in dgv_student.Rows)
{
if (!row.IsNewRow)
{
k = dgv_student.Rows[e.RowIndex].Cells[1].Value.ToString();
if (k != "")
{
dgv_student.Rows[e.RowIndex].Cells[2].Value = cuss.namefind(k);
}
if (dgv_student.Rows[e.RowIndex].Cells[3].Value != null)
{
string k=dgv_student.Rows[e.RowIndex].Cells[3].Value;
dgv_student.Rows[e.RowIndex].Cells[4].Value = cuss.findschool(k);
}
}
}
}
catch { }
}
Member 12197595
30-Dec-15 23:15pm
View
Thank You sir."CellValueChanged" event works Properly.. :)
But it need to click to display answer. whether any event exist when we type data the matching results to be display ?
Member 12197595
29-Dec-15 23:48pm
View
No sir..
Member 12197595
29-Dec-15 22:40pm
View
Thank you sir, But I want user type in first column then corresponding data will shown in second column automatically(ie.register number and name). then user type some details in third column like school code then I want school name automatically display in fourth columnn
Show More