Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
21346 | Nov 8,2004 02:01 PM UTC | Dec 13,2004 06:57 AM UTC | WinForms | 15 |
![]() |
Tags: Grouping |
private void timer1_Tick(object sender, System.EventArgs e) { DataTable dt = this.gridGroupingControl1.DataSource as DataTable; int row = r.Next(dt.Rows.Count); int col = 1 + r.Next(dt.Columns.Count-1); dt.Rows[row][col] = 1000 + r.Next(100); }What code are you using to update your Datatable? Are you changing the CurrencyManager position somehow? If so, the groupinggrid will respond to that.
>private void timer1_Tick(object sender, System.EventArgs e) >{ > DataTable dt = this.gridGroupingControl1.DataSource as DataTable; > int row = r.Next(dt.Rows.Count); > int col = 1 + r.Next(dt.Columns.Count-1); > dt.Rows[row][col] = 1000 + r.Next(100); >} >> >What code are you using to update your Datatable? Are you changing the CurrencyManager position somehow? If so, the groupinggrid will respond to that.
>>private void timer1_Tick(object sender, System.EventArgs e) >>{ >> DataTable dt = this.gridGroupingControl1.DataSource as DataTable; >> int row = r.Next(dt.Rows.Count); >> int col = 1 + r.Next(dt.Columns.Count-1); >> dt.Rows[row][col] = 1000 + r.Next(100); >>} >>>> >>What code are you using to update your Datatable? Are you changing the CurrencyManager position somehow? If so, the groupinggrid will respond to that.
>>>private void timer1_Tick(object sender, System.EventArgs e) >>>{ >>> DataTable dt = this.gridGroupingControl1.DataSource as DataTable; >>> int row = r.Next(dt.Rows.Count); >>> int col = 1 + r.Next(dt.Columns.Count-1); >>> dt.Rows[row][col] = 1000 + r.Next(100); >>>} >>>>>> >>>What code are you using to update your Datatable? Are you changing the CurrencyManager position somehow? If so, the groupinggrid will respond to that.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.