Hi,
I'm using gridview to list some important datas. After datas are listed, when i right clicked on the cell's, it shows a standard menu that contains copy, paste, cut, delete and some another options. But, i don't want that end users can cut or delete the cell's content even accidentally. I need only copy option. So, how can i remove that options except copy from that menu?

Hello;
I have run out of ideas!
I have a simple parent/child databound grid.
The parent has a list of people, the child has a list of stores assigned to them.
I am wanting so that if I want to assign a new store they can click on "click here to add a new row" then have it work.
The attached picture should help.
In "Cust Stop No" they should be able to type in a number, then I want to do some validation to make sure it is a valid store ID.
If it is, i want to fill in the other columns of data.
I populate the grid here:
private void button1_Click(object sender, EventArgs e) { radGridView1.DataSource = null; rep_assigned_stop_matrixTableAdapter.FillByStopDetails(first_choice_mainDataSet.rep_assigned_stop_matrix); GridViewRelation relation = new GridViewRelation(radGridView1.MasterTemplate); relation.ChildTemplate = childTemplate; relation.RelationName = "repStopRelationship"; relation.ParentColumnNames.Add("id"); relation.ChildColumnNames.Add("rep_id"); radGridView1.Relations.Add(relation); radGridView1.DataSource = first_choice_mainDataSet.rep_info; //radGridView1.AutoGenerateHierarchy = true; radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill; }Then I have tried to catch the cell change event here:
private void radGridView1_CellValueChanged(object sender, GridViewCellEventArgs e) { IEditableObject editbaleObject = e.Row.DataBoundItem as IEditableObject; DataRowView dataRowView = e.Row.DataBoundItem as DataRowView; var rowIndex = e.Row.Index; if (rowIndex == -1) { radGridView1.Rows[1].Cells["stop_name"].Value = "cityname"; }
I am several hours in and not making any headway....please help!
Thank you,
Joe


In the picture that I've attached you can see that the actual rows look fine with the white and blue color, just as i want them to look. However, the row grouping header is gray, and i can not for the life of me find a way to change the color of it.
(I want to change the color of the grouping header in C# code)
Thanks
A.

Hi,
if i doubleclick on the appointmen cell on the Scheduler for Winform UI the EditAppointmentDialog is shown.
Question:
How can i disable the EditAppointmentDialog , it is possible after a DoubleClick not to popup this EditAppointmentDialog??
Regards,
Bledar

Hi folks.
I have a list view which can be populated with many rows of data (not databound)
Once populated I want to grab the text values of certain sub items - but the ListViewDataItem does not have a subitem property
EG:
foreach (ListViewDataItem item in radListViewPOItem.Items)
{
}
Any tips on how to accomplish a simple task?
Thanks.
Hi,
I have a grid with multiple columns and rows and inside a method which handles cellformatting, based on some criteria which change dynamically, set different properties to cells(including enabling/disabling , coloring and many more). but when i do scroll the grid, the cells appearance are mixed up and cells which should be enabled will be disabled and many weird appearances. So i Was wondering how it can be fixed and is there any way to update the grid on fly when scrolling
Thank you
Cheers,
Niloofar

Hi,
How do I get a custom context menu to be shown when clicking in a GridView outside of a cell? For example, if there are only a few rows and I click near the bottom of the control?
-Lou