Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
21893 | Nov 25,2004 10:38 PM UTC | Nov 26,2004 06:20 AM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
private void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e) { if(e.RowIndex > 0) { if(e.ColIndex == this.grid.Binder.NameToColIndex("NextCol1") || e.ColIndex == this.grid.Binder.NameToColIndex("NextCol2")) { int col = this.grid.Binder.NameToColIndex("ComboCol"); string val = this.grid[e.RowIndex, col].Text; //may want .FormattedText if(val == "NextYear") e.Style.Enabled = true; else e.Style.Enabled = false; } } }
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.