Click here to Skip to main content
16,020,377 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionRe: How and where windows remember the window size Pin
Baeltazor11-Jun-09 18:54
Baeltazor11-Jun-09 18:54 
AnswerRe: How and where windows remember the window size Pin
Dave Kreskowiak12-Jun-09 11:05
mveDave Kreskowiak12-Jun-09 11:05 
AnswerRe: How and where windows remember the window size Pin
Luc Pattyn12-Jun-09 11:22
sitebuilderLuc Pattyn12-Jun-09 11:22 
QuestionDynamically change the Crystal report Pin
bruze4-Jun-09 0:38
bruze4-Jun-09 0:38 
Questionbreakpoint is skiping out Pin
Choubey Prashant3-Jun-09 23:06
Choubey Prashant3-Jun-09 23:06 
AnswerRe: breakpoint is skiping out Pin
Dave Kreskowiak4-Jun-09 1:34
mveDave Kreskowiak4-Jun-09 1:34 
AnswerRe: breakpoint is skiping out Pin
Henry Minute5-Jun-09 5:22
Henry Minute5-Jun-09 5:22 
QuestionIs it possible to Bind a datagridview (or a column in one) across more than one datatable? Pin
rj_hogan3-Jun-09 4:25
rj_hogan3-Jun-09 4:25 
I suspect this isn't possible but before I completely abandon the idea I'd thought I'd post and ask. I have two database tables structures as follows:

Table1
AreaID
CategoryID
Amount

Table2
AreaID
AmountTotal


I need to display the share that each category has of the overall area total, each area has many categories. The easy solution (and maybe the correct one) is to have a datatable which looks like this

DataTable
AreaID
CategoryID
Amount
AreaAmountTotal

and bind the Share column to an expression of Amount / AmountTotal. However this means the AreaAmountTotal is stored for every record that has the same area id and this struck me as inefficent. I'd thought to use a relational dataset with two datatables structured the same as the database tables and bind the share column to an expression across both tables but this doesn't seem possible (or at least I find no examples of it anywhere).

It looks like I could achieve this by not binding the datagridview to anything and programmatically populating the grid but development speed is an issue and we were hoping to minimise writing very much code.

Thanks in advance!

Robert.
AnswerRe: Is it possible to Bind a datagridview (or a column in one) across more than one datatable? Pin
Dave Kreskowiak3-Jun-09 5:37
mveDave Kreskowiak3-Jun-09 5:37 
GeneralRe: Is it possible to Bind a datagridview (or a column in one) across more than one datatable? Pin
rj_hogan3-Jun-09 6:35
rj_hogan3-Jun-09 6:35 
Questionsqlprofileprovider Pin
anandhakrishnan2-Jun-09 22:29
anandhakrishnan2-Jun-09 22:29 
QuestionFeature/component state Pin
SoumyaSri2-Jun-09 3:09
SoumyaSri2-Jun-09 3:09 
QuestionAdobe illustrator file development library Pin
vietth20042-Jun-09 0:20
vietth20042-Jun-09 0:20 
AnswerRe: Adobe illustrator file development library Pin
BillWoodruff13-Jun-09 22:57
professionalBillWoodruff13-Jun-09 22:57 
NewsFree Half-Day Windows 7 App Compatibility Labs Available in USA in June Pin
brucedkyle1-Jun-09 12:58
brucedkyle1-Jun-09 12:58 
Questionsaving data to sql database from excel sheet Pin
Choubey Prashant1-Jun-09 3:15
Choubey Prashant1-Jun-09 3:15 
AnswerRe: saving data to sql database from excel sheet Pin
Mycroft Holmes1-Jun-09 17:32
professionalMycroft Holmes1-Jun-09 17:32 
QuestionCursor control in Text Box Pin
sakthii1-Jun-09 0:15
sakthii1-Jun-09 0:15 
AnswerRe: Cursor control in Text Box Pin
Henry Minute1-Jun-09 2:06
Henry Minute1-Jun-09 2:06 
GeneralRe: Cursor control in Text Box Pin
sakthii1-Jun-09 16:05
sakthii1-Jun-09 16:05 
GeneralRe: Cursor control in Text Box Pin
Mycroft Holmes1-Jun-09 17:28
professionalMycroft Holmes1-Jun-09 17:28 
GeneralRe: Cursor control in Text Box [modified] Pin
sakthii2-Jun-09 2:22
sakthii2-Jun-09 2:22 
GeneralRe: Cursor control in Text Box Pin
Henry Minute2-Jun-09 2:57
Henry Minute2-Jun-09 2:57 
GeneralRe: Cursor control in Text Box Pin
Baeltazor11-Jun-09 20:10
Baeltazor11-Jun-09 20:10 
AnswerRe: Cursor control in Text Box Pin
Uwe Keim3-Jun-09 20:52
sitebuilderUwe Keim3-Jun-09 20:52 

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.