Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
4327 | May 8,2003 02:01 AM UTC | May 14,2003 12:33 AM UTC | WinForms | 6 |
![]() |
Tags: GridControl |
//set column style 2 if(e.ColIndex == 2 && e.RowIndex == -1) { e.Style.BackColor = Color.LightGoldenrodYellow; }Is it not working for you?
Color c = Color.LightGoldenrodYellow; private void button1_Click(object sender, System.EventArgs e) { c = Color.LightBlue; this.gridControl1.Refresh(); } private void gridControl1_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e) { if(e.RowIndex == -1 && e.ColIndex == 1) e.Style.BackColor = c; }
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.