16,018,518 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 Sameera Fonseka (Top 25 by date)
Sameera Fonseka
3-Aug-12 5:43am
View
But that does not do my requirement..Sequence of the process datatable is returned from another method.Then it is set as the datasource of the datagridview.
After that I want to select some cells of that datagrid view according to some paramateres.Problem arises with that.I can't select any cell programmatically..
But if i manually add some records to the datagridview i can select any cell programmatically.So i am sure that it is some issue with the datatable returned.Is there any specific way to create a datatable in order to set it as the datasource of the datagridview?
Any help is highly appreciated..thank you very much
Sameera Fonseka
1-Aug-12 13:16pm
View
This didnt work either..but any setting of a cell can be done in a button click event..that is the point im stucked.
Before selecting cells i set the datasource of that datagridview to a datatable returned from another method.
Even i put above code,only the current cell is selected..tkx
Sameera Fonseka
1-Aug-12 12:55pm
View
Deleted
Unfortunately this didn't work either..what is "cableGrid"?hope this is the name of your datagridview.but i don't understand why its cell location [2,1] is set to datagridview2 current cell?..see some conflicting here..tkx
Sameera Fonseka
1-Aug-12 11:27am
View
Thankx alot..But this didn't work either.I tried it earlier..If I place this code inside the databinding complete event of the datagrid view it also worked..
That is the point i am stuck..How can i programmatically select multiple cells of a datagridview in a separate method?
Sameera Fonseka
31-Jul-12 14:30pm
View
sorry i m using win forms.. i will be very thankful if you can give me any hint..tkx
Sameera Fonseka
31-Jul-12 14:19pm
View
Yep..it is a windows form..tkx
Sameera Fonseka
23-Aug-11 7:33am
View
Ok thankx alot fr ur effrt u had on this.And I will be very thankfl to you f u cn hv ur knd atttn on ths furthur.Thankx alot.
Sameera Fonseka
23-Aug-11 3:42am
View
Tkx alot..Tell me this if you have got time to reply..I tested this code with an USB mouse..Is it OK?since the OS has already enumerated and created a file for the mouse,is it possible to get the GUID for the USB mouse from my software in the way i am trying to do it?
Sameera Fonseka
27-Apr-11 2:52am
View
I am tryng to use "Sniffer" project which was published in Code Project.
That is d one which gives this error.Thanks
Sameera Fonseka
27-Apr-11 2:14am
View
Tkx alot..Do u knw any link to download UsbLibrary.dll?
Sameera Fonseka
26-Apr-11 6:13am
View
Hi!
Tkx.I ws usn java n vb..so new to c#..n im nt an ordnry sftwre devlpr.bcz ma fld s electrncs desgn..tkx alt for ur hlps.thats y say "Does anyone knw"..rly sry if you(SAKryukov) got hurt.tkx again to Nishant Sivakumar.
Sameera Fonseka
25-Apr-11 4:48am
View
Dear SAKryukov ,
Thank you very much for ur knd attntn rgrdnt ths problm.
It ws ma silly mstke.But even aftr crrctn tht,i alws get zero as the final rslt of batch file executn,eventhogh there s an error occurs durn the excutn.Can anyone suggst a sltn fr ths?
Thank you.
Sameera Fonseka
25-Apr-11 2:08am
View
Dear Pasan,
Thank you very much for the information.I never knew it.Thnk u very much for ur kindnes.
Unfrtntly i am still getiing following exception.
"OLedb Exception was unhandled"
"No value given for one or more required parameters."..if u hv got time plz hv ur luk on ths.is this an error in ma databse?
Sameera Fonseka
25-Apr-11 1:27am
View
Sorry there is a silly mistake.
Sameera Fonseka
24-Apr-11 22:13pm
View
Hi Pasan,
If u hv got time to hve ur attntn wud u please tel me the use of this statement..
"OleDbParameter employeeNumberParameter = command.CreateParameter();
"
I can't understand the true meaning of it.Thank you.
Sameera
Sameera Fonseka
24-Apr-11 21:51pm
View
Dear pasan,
Thank you very much for your kind attention on this problem and ur cntrbutn.I have done this in vb.net.But here coding is much different.Thank you very much for being so kind engh to have ur time on ths.tkx alot.
sameera
Sameera Fonseka
23-Apr-11 2:23am
View
Thank you very much for havn ur knd attntn on ths prblm and ur advcs.Thank u.
Sameera Fonseka
23-Apr-11 1:54am
View
he he..it ws a mstke bro..any way tkx alt
Sameera Fonseka
17-Apr-11 7:31am
View
Hello Dr Tarun.K.S
Thank you very much for ur knd attentn.Thnkx alot.
Sameera Fonseka
17-Apr-11 6:56am
View
Sorry for not clearly stating it.Just to animate it.I mean to add 3D rotation or something.Tkx alt for ur kind consideration.Thank you.
Sameera Fonseka
17-Apr-11 6:55am
View
Yep.To animate it.Tkx for your kind consideration.
Sameera Fonseka
17-Apr-11 5:35am
View
Hello!
Thank you very much.Then it started working.But the code i posted worked without the line you pointed out.That is still a big mystery to me.Don't know why it is happening like that.Any way thank you very much for your kind attention on this matter.Thank you.
Yours Sincerely
sameera
Sameera Fonseka
17-Apr-11 4:19am
View
Thanks.
But i still have that problem with that specific form..Here is the code which i used for both projects.One is working,one is not.
private void set_menus() {
mnumain = new MainMenu();
MenuItem proc1 = new MenuItem("&Test Procedure");
proc1.MenuItems.Add(new MenuItem("&Before Pouring", new EventHandler(this.proc1BeforePouring_clicked)));
proc1.MenuItems.Add(new MenuItem("&After Pouring", new EventHandler(this.proc1AfterPouring_clicked)));
proc1.MenuItems.Add(new MenuItem("&Exit", new EventHandler(this.proc1Exit_clicked)));
this.Menu = mnumain;
}
private void proc1BeforePouring_clicked(object sender, EventArgs e)
{
}
private void proc1AfterPouring_clicked(object sender, EventArgs e)
{
}
private void proc1Exit_clicked(object sender, EventArgs e)
{
this.Close();
}
Sameera Fonseka
9-Oct-10 1:42am
View
Thank you very much for your kind regards on this matter.But in this code we should connect to the internet.I want to give coordinates to an image(map of a particular area..ex-sri lankan map),and plot the available signal strength level at that location.If you can help me in that matter i wl be very thaankful to you.But i hope that this code will give me a way to proceed..Thank you very much for your kind regards
your sincerely
sameera
Sameera Fonseka
3-Oct-10 3:38am
View
thank you very much..i wl hve a luk n this..tkx alt
Show More