|
Its not Like that.........
datagridview is on a form named ViewItem and we want to update this datgridview through a button that is on another form name AddItem...
|
|
|
|
|
In dataGeidView set property Modifiers to true and in form AddItem bind datagridview which is in form ViewItem.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
datagridview having property Public,Private,internal,internalProcted
one thing that can be matters is The viewitem form is a MDIChild Form.
but the form Additem Is not a MDI form..ok
|
|
|
|
|
merahul wrote: datagridview having property Public,Private,internal,internalProcted
You are right,sorry it was my mistake to set Modifiers to true,I wanted write Public but not true .
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
I tried but its not working...
|
|
|
|
|
Use delegates to cause events to happen between forms.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
how can i use the delegates.tell me in detail or any example...
|
|
|
|
|
|
I like to give just the keywords. Anyone with any chance of ever becoming a programmer, should be able to type 'C# delegate' into google and find tons of articles to read.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
OleDbCommand cmd1 = new OleDbCommand("select Group_id from Group_details where group='" + descriptiondpdwnlist.SelectedItem .Value + "'", con1);
dr = cmd1.ExecuteReader();
I am selecting a value from dropdownlist and comparing it to group field in table-group_details and group is selected from it ...But why is this error coming?"syntax error near where clause"
|
|
|
|
|
Replace
where group
with
where [group]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
i m working with access database at the back end and using C#.net programming
i want to store the multiple selected items from the listbox to the access database in a single column
plzzzz can anyone help me
i need reply sooon!!!!!!
i m a new learner in C#.net
thnx in advance
|
|
|
|
|
Loop in all items of Listbox and while looping get only selected items.
e.g.
StringBuilder sb = new StringBuilder();<br />
for (int i=0;i<=listBox1.Items.Count-1;i++)<br />
{<br />
if (listBox1.GetSelected(i) == true)<br />
{<br />
sb.Append(listBox1.Items[i].ToString());<br />
sb.Append(",");<br />
}<br />
}<br />
string values = sb.ToString();
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
i m getting error
Error 1 : The type or namespace name 'StringBuilder' could not be found (are you missing a using directive or an assembly reference?)
how to declare this name space??
|
|
|
|
|
Include using namespace System.Text on top of class,or use System.Text.StringBuilder sb = new System.Text.StringBuilder();
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Hi,
I would like to know how can I refer to array such as byte array with offset
such as I would like to use the array from spesific location till the array end
in c++ i would do somthing like that
char *samplesBuffer
int offset = 20;
funcName(samplesBuffer+offset)
how can I do int in c#
thanks
ronen
|
|
|
|
|
You can't. C# doesn't support that sort of pointer arithmetic. You'd have to pass in the starting index instead. The good news is, the array knows it's length, in C++ you'd still have to pass in a length so you knew how far you could go in it
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
how to Consume java written webservices without adding reference in c#
|
|
|
|
|
Prayer, I guess.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hello,
I have a project from the university to implement the fax protocol (in any language I want).
The idea is to write a software that will be able to receive a fax from a real fax machine. It can be done in any way I want - any language/environment , via modem or some other idea.
I know how the fax protocol works and I wrote a simple implementation already. The problem is actually running it.
I tried writing a C# program using SerialPort class and to access the modem's received data. The problem is that the modem does its own thing upon connecting and doesn't give me control over the received data.
I ran out of ideas at this point.
What else can I do?
Thank you very much.
|
|
|
|
|
I am selecting a value,group_id,from the database table-group,using a datareader.Then i am assigning the result to the variable str_group.
But why is it giving the message'use of unassigned variable str_group???????My code is like this
string str_group;
OleDbCommand cmd1 = new OleDbCommand("select Group_id from Group_details where group='" + descriptiondpdwnlist.SelectedItem + "'",con1);
dr = cmd1.ExecuteReader();
while (dr.Read ())
{
str_group = (string)dr[0];
}
string cmd2 = "select description from description_details where group_id='"+str_group +"'";
|
|
|
|
|
myinstincts wrote: string str_group;
string str_group = string.Empty;
|
|
|
|
|
Hey ma friends,
I wanted to make my controls(lets say button1)to be circular @ run time ..... like the play button in media player or other players ....... I tried to make it in the button1_Paint() event
but it doesnt work ...... How could I do that ..... Please help me.....
Thank you.
|
|
|
|
|