DisplayGrid.MasterGridViewTemplate.AllowDeleteRow =
false;
DisplayGrid.MasterGridViewTemplate.AllowEditRow =
false;
DisplayGrid.MasterGridViewTemplate.AutoGenerateColumns =
false;
DisplayGrid.MasterGridViewTemplate.HorizontalScrollState =
ScrollState.AlwaysShow;
DisplayGrid.MasterGridViewTemplate.ShowRowHeaderColumn =
true;
DisplayGrid.MasterGridViewTemplate.Caption =
"Grid Caption";
DisplayGrid.MasterGridViewTemplate.VerticalScrollState =
ScrollState.AlwaysShow;
one cell is defined as a textbox column bound to an int field.
When i modify the value an error occurs stating that it cannot convert from type string to type int.
Here is how i define the column
colTxt = new GridViewTextBoxColumn("Age");
colTxt.UniqueName = "Age";
colTxt.IsVisible = true;
colTxt.MaxLength = 3;
colTxt.DataType = typeof(int);
colTxt.AllowResize = false;
colTxt.ReadOnly = false;
this.grdSearchResults.MasterGridViewTemplate.Columns.Add(colTxt);
How can i handle this? Is there an event where i can do the convert myself?
Thanks
How would I bind multiple ComboBoxes to the same provider while still allowing for each ComboBox to be changed independantly?
Dim cp As New npoCategoriesProvider |
Dim cds As DataSet = cp.GetCategoriesAsDataSet |
RadComboBox3.DisplayMember = "AccountName" |
RadComboBox3.ValueMember = "AccountNumber" |
RadComboBox3.DataSource = cds.Tables(0) |
RadComboBox4.DisplayMember = "AccountName" |
RadComboBox4.ValueMember = "AccountNumber" |
RadComboBox4.DataSource = cds.Tables(0) |
RadComboBox5.DisplayMember = "AccountName" |
RadComboBox5.ValueMember = "AccountNumber" |
RadComboBox5.DataSource = cds.Tables(0) |
RadComboBox6.DisplayMember = "AccountName" |
RadComboBox6.ValueMember = "AccountNumber" |
RadComboBox6.DataSource = cds.Tables(0) |
RadComboBox7.DisplayMember = "AccountName" |
RadComboBox7.ValueMember = "AccountNumber" |
RadComboBox7.DataSource = cds.Tables(0) |
RadComboBox8.DisplayMember = "AccountName" |
RadComboBox8.ValueMember = "AccountNumber" |
RadComboBox8.DataSource = cds.Tables(0) |