سلام
چگونه می توانم ردیفهای خاص کرید ویو تلریک رنگش را تغییر بدهم
در رویداد Row_Formatting میتونید تغییر دهید
private void radGridView1_RowFormatting(object sender, RowFormattingEventArgs e) { if ((bool)e.RowElement.RowInfo.Cells["BMP"].Value == true) { e.RowElement.DrawFill = true; e.RowElement.GradientStyle = GradientStyles.Solid; e.RowElement.BackColor = Color.Aqua; } else { e.RowElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local); e.RowElement.ResetValue(LightVisualElement.GradientStyleProperty, ValueResetFlags.Local); e.RowElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local); } }
سلام
استاد برای کد
e.RowElement.GradientStyle = GradientStyles.Solid;
ارور ذیل را می دهد
does not exist in the current
سلام
ممنون مشکلم حل شد
حالا اگر بخواهم این تغییر رنگ را در raddg-CurrentRowChanged انجام بدهم چکار باید کنم
هیچ کاربری تا کنون از این پست تشکر نکرده است
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)