Click here to Skip to main content
15,922,574 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: Video encoding problem Pin
Christian Graus8-Jul-08 6:05
protectorChristian Graus8-Jul-08 6:05 
QuestionDeleting Multiple checked rows from DataGridView with DataGridViewCheckboxColumn Pin
aspnet2.developer7-Jul-08 22:20
aspnet2.developer7-Jul-08 22:20 
AnswerRe: Deleting Multiple checked rows from DataGridView with DataGridViewCheckboxColumn Pin
Ashfield7-Jul-08 23:50
Ashfield7-Jul-08 23:50 
QuestionHow to close the parentwindow without closing child window in windows applications Pin
Member 38720757-Jul-08 20:50
Member 38720757-Jul-08 20:50 
AnswerRe: How to close the parentwindow without closing child window in windows applications Pin
N a v a n e e t h7-Jul-08 23:04
N a v a n e e t h7-Jul-08 23:04 
QuestionIntegrate desktop application with browser??? Pin
Technobizz7-Jul-08 17:53
Technobizz7-Jul-08 17:53 
AnswerRe: Integrate desktop application with browser??? Pin
N a v a n e e t h7-Jul-08 23:06
N a v a n e e t h7-Jul-08 23:06 
QuestionPopulating a treeview on bases of selected node Pin
sam128747-Jul-08 8:14
sam128747-Jul-08 8:14 
Hi Guys,

I am populating a treeview. I am able to populate the initial treenodes correctly with LicenseGroupID and Name ...BUT now I have to populate the childnodes according to the Parent node. The code below is populating all the DataitemID and Name in all the LicenseGroupID ,Instead of only the one which belong to that license Group ID ...



For example

If there is a licenseGroupID = 0 and its name is Everything now it should only display DataitemID and Name which belong to the LicenseGroupID...while right now its fillling up the childnode with all the DataitemID





foreach (DataRow row in treeViewlicencegrpID().Rows)///////Able to populate treeview with [ LicensegroupID ]+ Name
{
int LicensegrpID = 0;
LicensegrpID = (int)row["LicensegroupID"];
TreeNode newnode = new TreeNode();
foreach (DataRow rowchild in getLicDataMap().Rows)//////GetLicDataMap() conatins a string cmd seen below
{

TreeNode childnode = new TreeNode();
childnode.Text = "[" + rowchild["DataitemID"].ToString() + "] " + rowchild["Name"].ToString();
childnode.Tag = (int)rowchild["DataitemID"];
//childnode
newnode.Nodes.Add(childnode);
//break;
}

newnode.Text = "[" + row["LicenseGroupID"].ToString() + "] " + row["Name"].ToString();
newnode.Tag = (int)row["LicensegroupID"];
treeLicencegrpView.Nodes[0].Nodes.Add(newnode);
}





/////GetLicDataMap()



SELECT REVERSE(LocalNamespaceReversed) + c.LocalName as 'Name',a.DataItemID AS DataItemID FROM
webqa_state.dbo.METADATA_Data_Items_LicenseGroups a INNER JOIN
webqa_state.dbo.METADATA_Data_Items_English b ON a.dataItemID = b.dataItemID INNER JOIN
webqa_state.dbo.METADATA_LicenseGroups d ON d.LicenseGroupID = a.LicenseGroupID INNER JOIN
webqa_state.dbo.METADATA_Functions_English_Flat c ON c.BaseDataItemCode = b.localName
ORDER BY REVERSE(LocalNamespaceReversed), c.LocalName ASC


///////

OUTPUT



TF.CompanyCountryCode 13289
TF.CompanyCountryName 13290
TF.CompanyName 13288
TF.CompanyPermID 13287



///////////// LicensegroupID



SELECT Name,LicenseGroupID FROM webqa_state.dbo.METADATA_LicenseGroups



Everything 0
Filings-SECFilingsAll 1000
Filings-GlobalFilingsAll 1001
Financial-ExtelAsReportedFinancials 1002



Please If you can let me know how to go about it Thanks
QuestionDatabound column doesn't see inherited interface properties Pin
Joby17-Jul-08 6:08
Joby17-Jul-08 6:08 
AnswerRe: Databound column doesn't see inherited interface properties Pin
darkelv7-Jul-08 6:18
darkelv7-Jul-08 6:18 
GeneralRe: Databound column doesn't see inherited interface properties Pin
Joby17-Jul-08 7:50
Joby17-Jul-08 7:50 
GeneralRe: Databound column doesn't see inherited interface properties Pin
Paul Fuller23-Jul-08 9:31
Paul Fuller23-Jul-08 9:31 
GeneralRe: Databound column doesn't see inherited interface properties Pin
Joby124-Jul-08 4:21
Joby124-Jul-08 4:21 
AnswerRe: Databound column doesn't see inherited interface properties Pin
Paul Fuller24-Jul-08 6:15
Paul Fuller24-Jul-08 6:15 
QuestionData-bound DataGridView adds bogus empty row Pin
JustinInGwinnett7-Jul-08 2:47
JustinInGwinnett7-Jul-08 2:47 
Questionhow to stop the UPLOADING a file, or SAVING a file in middle by clicking cancel event. Pin
balaji_vbr6-Jul-08 18:38
balaji_vbr6-Jul-08 18:38 
AnswerRe: how to stop the UPLOADING a file, or SAVING a file in middle by clicking cancel event. Pin
Christian Graus6-Jul-08 18:56
protectorChristian Graus6-Jul-08 18:56 
AnswerRe: how to stop the UPLOADING a file, or SAVING a file in middle by clicking cancel event. Pin
N a v a n e e t h6-Jul-08 19:13
N a v a n e e t h6-Jul-08 19:13 
QuestionCustom DataBinding Question [modified] Pin
David Henry6-Jul-08 10:01
David Henry6-Jul-08 10:01 
AnswerRe: Custom DataBinding Question Pin
darkelv6-Jul-08 16:10
darkelv6-Jul-08 16:10 
GeneralRe: Custom DataBinding Question Pin
David Henry6-Jul-08 22:44
David Henry6-Jul-08 22:44 
GeneralRe: Custom DataBinding Question Pin
darkelv6-Jul-08 23:24
darkelv6-Jul-08 23:24 
GeneralRe: Custom DataBinding Question Pin
David Henry6-Jul-08 23:48
David Henry6-Jul-08 23:48 
GeneralRe: Custom DataBinding Question Pin
darkelv7-Jul-08 3:22
darkelv7-Jul-08 3:22 
AnswerRe: Custom DataBinding Question Pin
David Henry9-Jul-08 22:57
David Henry9-Jul-08 22:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.