Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
11787 | Mar 16,2004 05:38 AM UTC | Mar 17,2004 06:00 AM UTC | WinForms | 3 |
![]() |
Tags: GridControl |
private void button1_Click(object sender, System.EventArgs e) { GridRangeInfoList rangeList = this.gridControl1.Selections.GetSelectedRows(true, false); this.gridControl1.BeginUpdate(); for(int row = 1; row <= this.gridControl1.RowCount; ++row) { GridRangeInfo range = GridRangeInfo.Row(row); if(rangeList.AnyRangeContains(range)) { this.gridControl1.Selections.Remove(range); } else { this.gridControl1.Selections.Add(range); } } this.gridControl1.EndUpdate(); this.gridControl1.Refresh(); }
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.