|
Dear Fellows,
I have an xml file
<subjects>
<publishers name="wrox">
<book>
Beginning c#
</book>
<book>
Beginning ASP.NET WITH C#
</book>
</publishers>
<publishers name="Masters">
<book>
master in c#
</book>
<book>
master ASP.NET WITH C#
</book>
</publishers>
</subjects>
First I only want to display its publishers name in datagridview. When a user press any publisher name he will be able to see name of books in datagridview below the publisher name on which he click.
You can say it as a tree view operations that I want to perform in datagridview.
I need your help to solve it.
I will be thankful to all those who help me.
Thank you.
Regards,
Zeeshan Ahmed.
|
|
|
|
|
hi guys i want to connect hitachi 902 device mwith my .net application via serial port
any body knows how to do that ? any idea ? thanks in advance .
regards ,
Tauseef A Khan
MCP Dotnet framework 2.0.
|
|
|
|
|
I just got the same job. Plus I need to reed from 3 other machines.
E-mail me if you have some answers.
Is it posible to be done, did you have any success?
Thanks.
P.S. I'll continue working on the problem.
|
|
|
|
|
yes, i done with architect, and for hotachi 902 i am working and i hope it will also be done .regards .
Tauseef A Khan
MCP Dotnet framework 2.0.
|
|
|
|
|
from which machines you have to read ?
Tauseef A Khan
MCP Dotnet framework 2.0.
|
|
|
|
|
Hitachi 902 - biochemical analizer
has serial port
Elexis 2010 - imuno analizer
I can't find info about it, I need to check if the name is correct.
Sysmex K800
has some port
Roche 9180 - elektrolit analizer
has serial portt
|
|
|
|
|
i am working on hitachi 902 , if u need it i will give it to you ,i have done and tested with architect if some of your reference wants architech i can also provide it to you .
regards .
Tauseef A Khan
MCP Dotnet framework 2.0.
|
|
|
|
|
Hi,
I have started integrating the Hitachi 902 Automatic Analayzer. i think u have allready completed the interfacing can u help me in doing that?
Thanks
Bala
|
|
|
|
|
Hi!
I am trying to add different values to a combobox in a datagridview.
|TEXTColumn | |TEXTColumn | |TEXTColumn |DataGridViewComboBoxColumn |
|John | |Svensson | |1231421 |Cat |
| | | | | |Dog |
| | | | | |mouse |
|Sarndra | |Larsson | |2344324 |horse |
| | | | | |Bird |
|Adam | |Jönsson | |6587568 |dog |
| | | | | |mouse |
| | | | | |badger |
| | | | | |Tiger |
i set up a data grid view,
private void SetUpforDataGridView()
{
dataGridViewSearched.ColumnCount = 3;
DataGridViewComboBoxColumn dataGridViewcombobox = new DataGridViewComboBoxColumn();
}
And then set the values, it works dine for the textfields but not for the combobox, i get no values in it
public void BindUserList(List<User> userList)
{
object[] row = new object[3];
foreach (User p in userList)
{
row[0] = p.LastName;
row[1] = p.FirstName;
row[2] = p.UserId.ToString();
dataGridViewSearched.Rows.Add(row);
foreach (var unit in p.UnitActivationPeriods)
{
((DataGridViewComboBoxCell)dataGridViewSearched.Rows[dataGridViewSearched.Rows.Count - 1].Cells[5]).Items.Add(unit.ToString());
}
Any thoughts?
Mjelten
|
|
|
|
|
You should set the DataSource of the DataGridViewComboBoxColumn to your list of options. Then use the DisplayMember and ValueMember properties to set what is displayed and what is stored.
For examples Google for datagridview lookup column. there are loads of 'em.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
So you cannot display items without using datasource?
|
|
|
|
|
I am not aware of any way to do it, if it is possible.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi! My code works fine...I just had to change the property of the datagrid to readonly = true;
|
|
|
|
|
Good stuff!
I must make a note of that.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi i have a problem with datagridcomboboxcolumn... i think that i can't give to DataPropertyName the value of a string field in my table, cause it displays me nothing T.T so... the main problem, i think it is because the form with the datagridviewcomboboxcolumn is opened from an MDI parent... that's the problem because when i open the form just normally, the datagridviewcomboboxcolumn displays me the data... What Can i do??? i need help with that
|
|
|
|
|
You should post this question as a new message.
It is considered rude to try to hijack someone else's thread.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
ok i will... sorry...
|
|
|
|
|
H! All
I have a problem starting window service..i made some adjustment in this existing window service program..i changed the connection string to connect to Oracle(from app.config)..I also added the Oracle Data.Access in the references..and also installed ODT with ODAC 11.1.0.621 driver Oracle.Data.AccessClient in references). From OnStart, it calls a function LLProcess, from there it connects to a web service to execute another function that gets data from SQL Server 2005 and then return it as xml data..and then process this data to save in the oracle database..I tested the program and it was running fine..It can get xml data and saves it to Oracle database. I rebuilt the existing installer and installed it, but when i tried to start it from services, an error pops up..("error 1053: The service did not respond to the start or control request in a timely fashion"). The program uses System.Threading..
I don't know where the error came from..is it the Oracle references might causes the problem? DLL's?
Another thing is that i can execute(or double click) the EXE file manually after the installation and it was running successfully. If that is the case, is it normal for a window service EXE to be run manually?
BTW, The existing program was previously connecting to AS400 and was running in our production server already..
Anyone please help! Thanks!
Regards
|
|
|
|
|
May be some references are missing....
Also,try to catch the error and write into log file.So that exact error can be found
himanshu
|
|
|
|
|
thanks for the reply...
i already tried to write to a log file..when i started the service, it passes the process..but did not passed thru error handler(catch)..it just loop and loop in the function..and i think when it reaches 100+ loops(that's when the progress bar in the service reaches its half value), the error pops up..
What are the possible references that i missed?
Thanks and regards
|
|
|
|
|
Hi
I have two points to ask
(1)obrix_activex wrote: it passes the process..but did not passed thru error handler(catch)..it just loop and loop in the function
In which function this loop is going on?
(2)You have written try catch block in OnStart only?
himanshu
|
|
|
|
|
Nope..I have a function called LLPlusProcess...
This some content of OnStart..
intervalEnqueue = 600;
timer1 = new Timer(new TimerCallback(LLPlusProcess), null, intervalEnqueue, intervalEnqueue);
then inside the LLPlusProcess function it loops..waiting for some data to retrieve from SQL server..
Problem is that after how many loops an error pops up(this error pops up when i start the window service in the services.msc...
|
|
|
|
|
Have you write try catch block in LLPlusProcess function.
your best bet to solve this is try to write key steps in log file like
When you call LLPlusProcess function,Inside LLPlusProcess function and when LLPlusProcess function ends.Just try to find upto which point your code is executed by reading log file.
himanshu
|
|
|
|
|
Check the connection string. Is that correct?
|
|
|
|
|
I think so because during debug mode..i can connect to oracle (save and retrieve the data)... the only problem is that when i installed it and tried to start it in the services.msc..it has an error mentioned in my previous message..
|
|
|
|