|
Shooting from the hip, I would say step back to your data adpter and fill it will both tables then set the relationship of your data view. (I know you can do this with a datagrid haven't done this with a data view). I just seems you are going the long way about.
Sometimes simply is better than fancy. The developer stated after typing code line 10 billion!!!
|
|
|
|
|
I want to display a complete view at once:
Company 1
- User 1
- User 2
Company 2
- User 3
- User 4
etc.
Therefore I run through all parent records, fetch the children and store them both in a flat list. This is different from having two separate grids, one showing the parent records and one showing the children of the selected parent record.
Loading the data into the tables is no problem (calling Fill() only takes about 400 ms). Only building the view takes time when using CreateChildView instead of GetChildRows.
Kees
|
|
|
|
|
CreateChildView will create controls too I susoect. Have a look in Reflector what is happening inside those methods.
|
|
|
|
|
Reflector?
I never used it, where can I find this tool?
Kees
|
|
|
|
|
Hai Friends,
I was stuck while do a porject which involves adding a key_up event for a label control....
Can anyone help me to solve this... It may be in any method!!
Regards
B.VijayaRam
Vijay
|
|
|
|
|
Hello,
public YourConstructor()<br />
{<br />
InitializeComponent();<br />
<br />
this.YourLabel1.KeyUp +=new KeyEventHandler(YourLabel1_KeyUp);<br />
}<br />
<br />
private void YourLabel1_KeyUp(object sender, KeyEventArgs e)<br />
{<br />
<br />
}
All the best,
Martin
|
|
|
|
|
Why would anyone need a keyup event in a label?
|
|
|
|
|
hi
my problem is the following:
i take one data row (BE.DSPedido.PedidoItemRow pedidoItemRow = dsPedido.PedidoItem[e.RowIndex]; )
then i change some of its values (eg: pedidoItemRow.DtConferencia = DateTime.Now; )
but after, when i test for its status, i get `unchanged` (MessageBox.Show(pedidoItemRow.RowState.ToString()); )
i haven`t done anything important between these statements (like a AcceptChanges() or something that would affect the row - except other assigments)
the problem is that when i call a GetChanges() operation in my dataset i get a null DataTable and i can`t persist the modified values in the SQL Server (it`s mapped through a DataAdaptor update command)
any hint?
thanks in advance :]
|
|
|
|
|
sorry, nevermind... i have solved it
i must call EndEdit() after i make all changes. :]
|
|
|
|
|
Hi folks,
I got a general question that I cannot find the answer for. Consider a 3-tier application architecture with a Web Service handling the business layer (BL) logic. The BL provides the client the facility to create/update/delete or query any given Employee account within the system. Each employee has got a username/password pair that's supposed to be stored in the *aspnetdb* database using the Membership API. The question is that how a client is supposed to create an employee account with one web method, and create a new user name with another web method, *transactionally* under a *stateless* web service???
[WebMethod] void CreateEmployee(Employee employee) { }<br />
<br />
[WebMethod] void CreateUser(string username, string password) {}<br />
How am I supposed to keep the integrity of the system? Maybe, you suggest the following WebMethod instead of those two:
void CreateEmployee(Employee employee, string username, string password) {}
However, this introduces a new bunch of problems under the UpdateEmployee/DeleteEmployee and the like methods.
What should be done to handle the issue rationally?
Thank you for your time,
Mehdi
|
|
|
|
|
|
Ooops! You simply didn't get my point. I didn't ask you how to develop a "secure web service"! I was just talking about ASP.NET Membership/Role providers and how to get the job done under a given transaction. It has got nothing to do with SOAP headers, nor the IIS A&A mechanisms.
Anyway, thanks.
|
|
|
|
|
|
Hi,
I'm having an ussue with populating the datagrid values for editing.I've three levels of data in the grid interlinked with Parent Child relationships.
I Level and II Level - Linked through ProductCode
II Level and III Level - Linked through RefID.
I could be able to populate the I level of record from datagrid.But I level can have any number of II level child records.I couldn't be able to populate the II level.I need to populate the III Level in another datagrid for editing.Can anyone let me know how I should proceed?
Any sample or article that could help me sorting out the issue?
Thank you,
Sincerely,
Deepa
Be the Change You Want to See!
|
|
|
|
|
Element Nodes in XML file have attributes associated with them.
I randomly select element nodes in an XML document after loading it using DOM class. The selected element node can have zero or more Attributes associated with it.
If selected xml node got attribute I displayed it in ListView.
Attribute Name: Being First ColumnHeader
Attribute Value: Being Second ColumnHeader
Name Item being label of listView can be edited if i enable "labeledit" in property of listView.
But Value under the subitem cannot be edited.
1. How can i simply edit both field using listView?
2. Is there any other control or method that will help me create 2 columns according to number of attributes and enable me to edit fields?
3. How can I edit listBox items? Is there any possibility of using it.
Your reply will be highly appreciated.
Thank you.
|
|
|
|
|
h@s@n wrote: How can i simply edit both field using listView?
You can't
h@s@n wrote: Is there any other control or method that will help me create 2 columns according to number of attributes and enable me to edit fields?
DataGrid, or GridView.
h@s@n wrote: How can I edit listBox items? Is there any possibility of using it.
I don't think you can
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
While trying to retrieve the Index number and Checked properties of ToolStripMenuItem and/or ToolStripDropdownItem I could not get them, especially the Index property. How do I get those properties?
Siamginsuan Ngaihte
|
|
|
|
|
Hey,
I have the same problem. Had You found the solution after all these years?
thank for the responces
|
|
|
|
|
public void Show_Categories()
{
MainPage obj = new MainPage();
SQLiteCommand myCMD1 = new SQLiteCommand (ShowCatName_Query , myConnection);
myConnection.Open();
SQLiteDataReader myDR = myCMD1.ExecuteReader();
ToolStripMenuItem Items = new ToolStripMenuItem();
while (myDR.Read())
{
Items = new ToolStripMenuItem();
Items.Name = myDR["Name"].ToString();
Items.Tag = myDR["Name"].ToString();
Items.Text = myDR["Name"].ToString();
Items.Click += new EventHandler(obj.Categories_DropDownItem_Clicked);
this._myCats.DropDownItems.Add(Items);
}
myConnection.Close();
}
//---------------------------------------------------------
public void Categories_DropDownItem_Clicked(object sender, EventArgs e)
{
ToolStripMenuItem ClickedItem = (ToolStripMenuItem)sender;
MessageBox.Show(ClickedItem.Text);
}
|
|
|
|
|
hi forum
any body can tell me how to chat between two or more systems using sockets(windows).in my case firewall can not be off.
thanking you in advance;P
|
|
|
|
|
Too vague - Be more specific about what you want.
|
|
|
|
|
Dear Jacob Klint
May you please tell me how to sign the volume meter you have created and implemented in my project? I got the demo project but that doesn't show how it is implemented and the source code for the demo is not available. After all the progressbar is not signed therefore gives a lot of problem using it. Please help me.
Siamginsuan Ngaihte
|
|
|
|
|
If this is a question related to a CP article, post it in the articles message board (situated at the bottom).
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
please tell me how can i export datagrid into excel in winform in C#
please remmember WinForm cause all what i found about WebForm and thanks a lot for your effort......
|
|
|
|
|
In earlier, you'd have had to disassemble Excel to parse its format, but that's long gone in databse world -with very few exceptions-.
You've got two ways:
1- The easy -most effecient- way is to export your data to an intermediary format that could be understood by most Database engines -including Excel-. For example Xml or Html files, or comma/tab delimited text files.
2- The hard way -and I wouldn't know why would anybody go there anymore. There could be some good reasons that I don'y know of though-, is to use Excel Interop -which presumes that MS Excel is already installed on the user's machine. You'd find more derails about this way in Office Interop library documentaion.
Regards
|
|
|
|