No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
9 Posted Topics
just try below code in your add button to add record using binding navigator note : suppose you have datasource nam ds,tablename is cTablename [code] myCurrencyManager = (CurrencyManager)FormName.BindingContext[ds, cTableName]; myCurrencyManager.Position = 0; bs = new BindingSource(); bs.DataSource = ds.Tables[cTableName]; bindingNavigator1.BindingSource = bs; if (bs.Count == 0) { lInsert = true; …
Hi, i am new to c#. i write a code as below.You see that i obtained columnname and dataType but How can i get size of field in Table ? Pls help me. foreach(DataColumn dc in ds.Tables[UpdateTableName].Columns ) { lFound = false; cNewName = dc.ColumnName; cNewType = dc.DataType.ToString(); Thanks a …
I have a one textbox on the form and combo1 in datagridview when form is load combo1 is empty if value of text1.text is 'A' then combo1 should have below items. combo1.Items.Clear(); combo1.Items.Add("Director"); combo1.Items.Add("MD"); combo1.Items.Add("President"); combo1.Items.Add("Chairman"); combo1.Items.Add("FullTimeDir"); and if value of text1.text is 'B' then combo1 should have below values. …
i think you have to assign variables like this string m = "";m1 = "";m2 = ""; if not solved pls give line number.
select isnull(Max(formno),0) as FormNo from PreRegistration use above query evenif table is empty.
hi, i am using datagridview on a form [binding with datasource] when i Add/Modify data in grid and if i don't move to next row in the grid then Add/Modify is not possible Why this happens ? pls guide me. Thanks in advance.
How can i Hide/shows columns in datagridview runtime ? I have a window application form with a comboBox and a grid. As according to selection in comboBox Items, I want to hide or show datagridview columns as according to combobox item selection
i used bindingnavigator as usercontrol. Adds two button for Add,Delete. when i put this control on form, i cannot write into click event of bindingnavigator's buttons but i can write code into controls buttons pls help me for the same
i am using a binding navigator as usercontrol having add,delete buttons my problem is that i can not write into click event of add button on the form but i can wirte into click event of usercontrol so pls help me how can i write code in click event of …
The End.
Naik Dhiren