|
Check DataBindings property. I know combobox has this property and hopefully DataGridViewComboBox has it as well. Here you can make each control be ware of the other. If property is not there then simply write some code. For example, when the comboBox is selected, select the appropriate patients which have the foreign key.
|
|
|
|
|
you must remove dgvPatients.Columns.Remove("Doctor_ID");
from the DataGridView
|
|
|
|
|
I had a dll referenced in my project having namespace Utilities. I can access the methods in the namespace by writing Using Utilities at the top of my project and directly I can use Utilities.Class.Method.....
Plz let me know what the exact difference between these two ways.
Thanks,
Bhuvan....
|
|
|
|
|
No difference at all. Except without using Using you have to write Namespace.Class.Method everywhere you want to use that method.
Hope can help
[Edit]
Also it's worthy to search Using in MSDN.
I died as a mineral and became a plant,
I died as plant and rose to animal,
I died as animal and I was Man.
Why should I fear? When was I less by dying?
-- Rumi[^]
My blog
modified on Thursday, December 4, 2008 2:43 AM
|
|
|
|
|
Yep....Thanks....
|
|
|
|
|
Pedram Behroozi wrote: No difference at all.
Not quite. By prefixing the class with the namespace you can avoid name clashes. If two (or more) usings have the same class, then you will get a compiler error if you don't specify the namespace.
Likewise, if you forget to include your namespace via using and there's another namespace using your class name, then you might accidentally use this class. Sure, the signatures won't match, but it can give you some headache because you might not know what the compiler is complaining about.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hello all,
I want to know about GNU Make file.
What is Make file & what is the use of it?
|
|
|
|
|
You want too compile C# with it?
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
another school assignment
dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support
|
|
|
|
|
i don't understand wht u r saying
|
|
|
|
|
hello all
what is a make file ???/
|
|
|
|
|
It's a batch file used to compile and link a program.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
hello Guffa
make file / Make file
where it is used?
How it is used?
When it is used?
how related to C#??
Thanks
tony
|
|
|
|
|
tonyjsebastian1 wrote: how related to C#??
It's not. C# uses MSBuild. Google that or look in MSDN.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
hello forum
i dont find any board regarding sql queries,so m posing my query in this board
i want to give an option of search on frontend (asp.net) that will find the given keyword in selected columns of each table present in database
how can i do that perfectly and without effecting the performance.
can anybody help me.
regards
rahul
|
|
|
|
|
rahuladya wrote: i dont find any board regarding sql queries
Its right here.[^]
Loading signature. Please wait...
|
|
|
|
|
|
hello all
we have seen in windows refresh by rght click on mouse or by using the F5 key ... how is this possible in C# for an application.
thanks
tony
|
|
|
|
|
By writing some code. Handle the key event, work out the user pressed f% and reload whatever data you're displaying.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hello Christian Graus
can u illustrate some sample codes plz
thanks
Tony
|
|
|
|
|
Hi
I think first you should define the meaning of Refresh for you application.(What)
For example, if there is a form that shows a list of customers ,Refresh might be to refill the list .If it's a data entry from you might want to refresh your look up fields that might have been changed by some other users and so on.
Then you should decide when this refresh should happen(When).
There might be a refresh button on the form or a shortcut key or when user opens a drop down.In either of these cases, you want to handle an event to do the Refresh.
For example:
We have a method called RefillCustomers that refill customers list and we want a refresh button that do the refresh.
The simplest way to make it work it's something like this:
handle button clicked event(in form load for example)
refreshButon.Click+=new EventHandler(RefreshButtonClicked);
then we should implement RefreshButtonClicked method:
private void RefreshButtonClicked(object sender,EventArgs e)
{
RefillCustomers();
}
and then you should implement the RefillCustomers method.
|
|
|
|
|
hello beatles1692
thanks for u r answer
thanks
Tony
|
|
|
|
|
Hi friends,
Is it possible to create player which can play all formats of video files using c#.If so give me some suggestion to do that.
|
|
|
|
|
hello B87
see this link
http://www.dotnetspider.com/forum/157129-how-play-all-video-files-webform.aspx
|
|
|
|
|
Google broken where you live ?
The easy way to play video is to embed the windows media player in your app. This will play any format that WMP can play. Quick time is the obvious unsupported one, but I believe they have a control you can use, too.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|