Well i have a datagridview in my application and i want it to reflect any changes made in server database instantly with some trigger or so?
I have a choice to use timer and get the desired results by binding datagridview after every 5 sec's or so but i dont want to do this .As it ll affect the performanc e of my application.Ple ase suggest a better way out......
User Profile
Collapse
-
Datagridview to reflect changes made in Server database
-
But one problem is coming I am using usercontrol as form1(in which I want to change the background color of checkbox) and System.Windows. Forms.Form as form 2(from which I want to raise an event of usercontrol(For m1)). Form1 and Form2 are not related to each other,means they are parent and child...
The coding you gave is related to the concept of parent and child...and it is not working ..I have tried a lot...
One thing I tried... -
-
Hello Aritra
I am not that much sure but if you can first put the data of gradview in hashtable n than to datatable,it can be possible.But first you have to make the datatable with same no of columns n same typesLeave a comment:
-
How to call an event in one form from another?
My problem is that on button click of one form(Form1) I want to change the background color of checkbox in another form(Form2) ..One way I found is to call the form and pass the variable through constructor..Bt I don't want to create new form...The form in which I want 2 send the key is already opened n I don want to call the constructor.. Is it possible to call an event on form2 through the pressing of button on form 1....If yes then how?
... -
-
Use if IListSource for binding of combobox to the collection
Now I am stuck at a point where I want to bind combobox with datasource.The coding I tried is:::::::::::::
BusLayer.Surgeo n objsurgeon = new BusLayer.Surgeo n();
BusLayer.Surgeo nCollection surgeonCollecti on;
surgeonCollecti on = objsurgeon.GetS urgeonCollectio n();
cmbChiefSurgeon .DataSource = surgeonCollecti on.Collection() ; cmbChiefSurgeon .ValueMember... -
Thank you everybody
I have used a class returning the values and I am using object of that class
and it is doing good:
the coding is:::::
Code:public class info { String initial,transplantDate; public info(String initial, String transplantDate) { this.initial = initial; this.transplantDate = transplantDate; }
Leave a comment:
-
Code:infoPatient(out initial,out transplantDate );
How will we get values returned by the
infoPatient(out initial,out transplantDate )
This function will return two values (initial,transp lantDate).Shoul d we get the values in collection?
Also you used the return type of function as string but we have two values to return....what if the two values are of different type?...Leave a comment:
-
Can we return more than one value through function/method in C#
The coding on which I am working is::
Code:private String infoPatient() { String initial; String transplantDate; openConnection(); SqlDataAdapter adpGender = new SqlDataAdapter("select gender from tblRegistration where pID='"+patientID+"'", con); DataTable dtGender = new DataTable();
Last edited by Curtis Rutland; Aug 25 '08, 01:07 PM. Reason: Added Code Tags - Please use the # button -
private void lstRecommendedT est_MouseHover( object sender, EventArgs e)
{
tp.Show(lstReco mmendedTest.Sel ectedItem.ToStr ing(), lstRecommendedT est, x, y, 1300);
this.toolTip1.S how(@@@@@Here I want to show the listbox item on which the mouse is hovered@@@@@, x, y, 1300);)
}
private void lstRecommendedT est_MouseMove(o bject...Leave a comment:
-
I hav used this code
private void lstRecommendedT est_MouseHover( object sender, EventArgs e)
{
ToolTip tp = new ToolTip();
tp.Show("hi", lstRecommendati ons, x, y, 1130);
}
private void lstRecommendedT est_MouseMove(o bject sender, MouseEventArgs e)
{
...Leave a comment:
-
I dont know any thing abt it....It wud b nice if u will tell me...Leave a comment:
-
No activity results to display
Show More
Leave a comment: