how do i do then when i load a form it check the checkbox rather than showing true or false next to it chkIsFavourite.text = gvdPizza.Rows.[e.Rowsindex].Cells[0].value.tosring()
kolisa
Posts
-
Checkbox -
datagridHow can i passing information from the datagrid to datagrid code i used Collapse | Copy Code clName.text = dgvSubs.Rows.[e.RowsIndex].Cells[0].Value.Tostring() error says cannot covert system.windows.form.DatagridViewCell to system.windows.Form.DatagridColumnTextboxes ClName- is the datagridViewtextboxes that in the datagrid that i want to pass the field to
-
code for checkboxi was writing this for a checkbox pizzaInfo.IsFavourite = Convert.ToBoolean(chkIsFavourite.Text); its error not sure how to call it String was not recognized as a valid Boolean
-
passing informationdoesnt pass valid data
-
passing informationi am passing information from listbox to another listbox in a different form by just pass using system this is the code i'm passing with string[] items = new string[lstSelectedItems.Items.Count]; amoun = txtAmount.Text; lstSelectedItems.Items.CopyTo(items, 0); FrmOrderDetails order = new FrmOrderDetails(txtAmount.Text,items); order.Show(); this is the code in a form that i want to accept the data am passing string it; private string totalprice; public string Totalprice { get { return totalprice; } set { totalprice = value; } } public FrmOrderDetails(string tprice, string[] items) { InitializeComponent(); it = items.ToString(); tprice = Totalprice; private void FrmOrderDetails_Load(object sender, EventArgs e) { totalprice = txtTotalPrice.Text; lstOrderDetails.Items.Add(it); }
-
generating CustomerIDint n = int.Parse(CustomerID[CustomerID.Length - 1].CustomerID.Substring(4, 3)) + 1; i try this to generate customer ID but kept telling me the is clash with surburbID becouse i linked surburb in customer table
-
reading size using radio buttonsi wrote this code to retrieve size from the database private void grpSize_Enter(object sender, EventArgs e) { string size = ""; if (rdbLrg.Checked) { size = "Large"; } if (rdbReg.Checked) { size = "Reg"; } if (rdbSupa.Checked) { size = "Supa"; } i am using this to pass it to the next from frmOrderDetails order = new frmOrderDetails(lstItems.SelectedValue.ToString(),rdbSupa.Checked.ToString()); order.Show() but what it does shows me true when i click the size i want and show false when i click other button i want it to retrieve the size i putted on the database
-
linking two tablesi am using 3tier design in .net framework,i got two tables called category and menus so i want when i click the button to display in listbox only those who belong in that category..