NESTED DATAGRID IN WINDOWS FORM
-
Hi I have created a datagrid and i have bound that datagrid with the result from the query. I have a table of purchase which i have bound with the datagrid. But now i want that whenever a person clicks anyof the row of purchase it must display the purchase details in the form of table or grid. How can i do that? Please hlep me KHATRI
-
Hi I have created a datagrid and i have bound that datagrid with the result from the query. I have a table of purchase which i have bound with the datagrid. But now i want that whenever a person clicks anyof the row of purchase it must display the purchase details in the form of table or grid. How can i do that? Please hlep me KHATRI
Hi you. You are saying about hierachical data, called master-detail data. You can completely do it. First, you make a dataset contains two table: PURCHASE and PURCHASEDETAIL. And you also make an internal relation among two tables with a "PURCHASE.ID = PURCHASEDTAIL.pID" datarelation. See next. Second, you assign Datagrid's Datasource into this dataset. That's all. It is working like you want . Hope my help.
-
Hi you. You are saying about hierachical data, called master-detail data. You can completely do it. First, you make a dataset contains two table: PURCHASE and PURCHASEDETAIL. And you also make an internal relation among two tables with a "PURCHASE.ID = PURCHASEDTAIL.pID" datarelation. See next. Second, you assign Datagrid's Datasource into this dataset. That's all. It is working like you want . Hope my help.
Yes but how it will show in datagrd.. i mean how ill gonna implement that.. like First i m calling a Purchase table in a dataset and bounding it. Then on click it will request for the details of the table for the particular purchase id. The result will be shown in another datagrid showing heirarchial or master child relation. KHATRI
-
Hi I have created a datagrid and i have bound that datagrid with the result from the query. I have a table of purchase which i have bound with the datagrid. But now i want that whenever a person clicks anyof the row of purchase it must display the purchase details in the form of table or grid. How can i do that? Please hlep me KHATRI
Hi, for u r requirement pls refer following link u wwill get better idea for implementation http://www.codeguru.com/csharp/.net/net_asp/controls/article.php/c12647 I hope this will help u lot, "Winning is not our dream ,Its a habitof sucess people"
-
Hi, for u r requirement pls refer following link u wwill get better idea for implementation http://www.codeguru.com/csharp/.net/net_asp/controls/article.php/c12647 I hope this will help u lot, "Winning is not our dream ,Its a habitof sucess people"
I m not asking for ASP.NET . I am asking for Windows Form. I am not creating application for webdevlopment its basically an Windows Application. over there I have to use datagrid with nested or master child relation. KHATRI