SQL C# Datagridview removing mutiple rows at the same time
i am trying to select multiple rows and deleting all of whichprivate void btnDelete_Click(object sender, EventArgs e) { if (string.IsNullOrWhiteSpace(txtAMDID.Text)) { MessageBox.Show("برجاء تحديد عنصر...
View ArticleSaving unbound datagridview
i have two datagridview they are all unbound and manually inputed from user, what i want is to copy the data inputed from user from the first dgv to another datagridview and save it. Help me guys.....
View ArticleAdd Rows in to bounded datagridview vb.net
Hi,I loaded data from mssql table to datagridview with specific columns. I have to add 20 rows below of the data loded from mssql. For example:- I have four textboxesValue of textbox as followstextbox1...
View Articlemake master details relational in datagridview?
dear master,Today I study one topic about make master details relational in datagridview and I did coding like this belowplease suggest me about it, how to do correct coding...
View ArticleInconvertible type mismatch between SourceColumn 'book_image' of Byte[] and...
I'm getting this errorInconvertible type mismatch between SourceColumn 'book_image' of Byte[] and the DataColumn 'book_image' of Object.My database datatype is BLOB for the image.I am getting the error...
View ArticleOpening a New Window on a Button click - MVVM WPF
I am new to MVVM architecture, and I would like to keep the standard of MVVM without violating its rules. So I implemented an approach to open a new window on a button click using Services. I don't...
View Articleloading rows from database to datagridview is to slow in vb.net winforms
i have a datagridview that is loading rows from a table from database and there are other columns are filled by a calculation while filling the datagridview from datatable (ex.30 rows ) and then...
View Articlesinc to async
Hi all,I have this code private void btnLoad_Click(object sender, EventArgs e) { FillProd(); } private void FillProd() { try { dgvProd.Rows.Clear(); var det = new Product().LoadProducts(); // 15000...
View Articlehow to create condition if list of ComboBox changed
Hi All.In my form I have cascading ComboBoxes. I would like to create IF statement to check when list of ComboBox changed based on selection an other ComboBox. If that is possible. How to do it?Thanks.
View ArticleWPF Data Grid Binding Data to one Different Source than Property Binds
All,So I'm binding to my implementation which contains the security models Observable collection, my data grid in XAML binds to the Observable collection, everything works great, but i cant figure out...
View Articleproblem to validate email address
Hi All.I'm trying to validate email address in the text field<xctk:WatermarkTextBox x:Name="EmailTextBox" Watermark="Email Address" VerticalContentAlignment="Center" Grid.Column="1" Grid.Row="3"...
View ArticleDataGridView vertical scroll is Disabled.
Hi,I am using DataGridView and binding list as source and the list is getting populated to the grid properly, the vertical scroll bar also displayed but disabled. How can I enable the vertical scroll...
View Articleasync
Hi all,I'm trying to clean a datagridview on what is written in a SEARCH (textBox). It's works on column COD. I would like to do ASYNC, since I have 2000 rows, but I can't. tips?For example: COD 124...
View ArticleBinding with Multi-Layer-DataMember is corrupt in WinForms
I think I found a DataBinding-bug when the DataMember-Path has multiple layers. To reproduce you can clone my spezialized repo: https://github.com/Der-Kraken/Kraken.WinFormsBindingThe repo...
View ArticleBinding text boxes and combo boxes to access using VB
Hello everyone, I've been putting of this project for years but now I see an oppertunity to learn a new skill and code in VB. At uni I learnt code in VBA in Access but I want to be able to link my...
View ArticleBest data binding practice: update form or update data row?
Generally, in a form with bound controls, the user enters data into the form controls, then data binding updates the data row, and then code does a table adapter update or something like that, and the...
View ArticleSort Data Grid View
How can I sort the data in the first column of a Data Grid View? (C#)
View ArticleHow to add object to the ListBox as an element and display only one of the...
I have a class like following. public class ResponseMessage { private Int16 m_response_message_no; private Int16 m_message_type; private string m_message; public Int16 ResponseMessageNo { get { return...
View ArticleInvoke Enter
Is there a way to invoke an enter instead of a click?WebBrowser1.Document.GetElementById("submit").InvokeMember("click")
View ArticleHow to resize form to fit DataGridView?
I have a form that contains dataGridView, whose coloumn are set todgrv1.Width =dgrv1.Columns.GetColumnsWidth(DataGridViewElementStates.Visible)+20;I want to make the form to automaticaly follow the...
View Article