I'm using c#.net and i have a form wherein i am using an ultragrid which contains four columns. One which has a drop down list which when selected it populates another column that is read only. However the last two columns should be editable however the columns doesn't allow this behaviour. Can you suggest the issue ?
void btnBillofToursgridaddrow_Click(object sender, EventArgs e)
{
BillofToursGrid.DisplayLayout.Override.AllowAddNew = AllowAddNew.TemplateOnBottom;
BillofToursGrid.DisplayLayout.Bands[0].Columns["Name"].RowLayoutColumnInfo.Column.CellActivation = Activation.AllowEdit;
BillofToursGrid.DisplayLayout.Bands[0].Columns["TourLength"].RowLayoutColumnInfo.Column.CellActivation = Activation.AllowEdit;
BillofToursGrid.DisplayLayout.Bands[0].Columns["Capacity"].RowLayoutColumnInfo.Column.CellActivation = Activation.AllowEdit;
if (BillofToursGrid.DisplayLayout.Bands[0].Columns.Exists("TourId"))
BillofToursGrid.DisplayLayout.Bands[0].Columns["Name"].ValueList = tourName;
BillofToursGrid.DisplayLayout.Rows.Band.Columns["TourLength"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.FormattedTextEditor;
BillofToursGrid.DisplayLayout.Bands[0].Columns["TourLength"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Edit;
BillofToursGrid.DisplayLayout.Bands[0].Columns["Capacity"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Edit;
}
Hi,
Either editing is disabled on the columns themselves, or it's not allowed by the data source.
Here's an articles that describes all the ways you can disable columns in the grid, so you should search your code and check these properties to see if any of them are being set: HOWTO:How can I make a grid or a column, row, or cell in the UltraWinGrid disabled or read-only?
Even if none of those properties are used in your code, they could be getting set by loading a layout or a preset.
Also, check the CellClickAction property on the columns.
Thanks the issue was rectified and it was an issue with the datasource..