Questions tagged as 'datagridview'

0
answers

Datagrid Adding extra value without C # WPF

I have the following problem, I have a combobox <ComboBox x:Name ="CmbLista" ItemsSource="{Binding Path=Lista}" DisplayMemberPath="Descricao" SelectedValue="{Binding Path=Model, Mode = TwoWay}"...
asked by 10.10.2018 / 20:58
2
answers

IF Condition in DataGridView

Hello. How can I check the first number of a row in a grid? Example: If Conversions.ToString(Me.DataGridView1.CurrentRow.Cells(0).Value)[0(primeiro número da row)] == (for igual a:) 5 Then WebBrowser1.Document.GetElementById("ibMaste...
asked by 10.08.2018 / 22:47
0
answers

How to compare arrays and datagridview through loops?

Good afternoon guys I have 7 textboxes that I did this way long[] Jornada; Jornada = new long[7]; Jornada[0] = TimeSpan.Parse(textboxjornadaseg.Text.ToString()).Ticks; Jornada[1]= TimeSpan.Parse(textboxjornadater.Text...
asked by 27.07.2018 / 18:12
1
answer

How to display data from multiple tables in DataGridView?

I'm trying to display multiple tables in DataGridView , from a database I mapped through the Entity Framework . Example, person table, address. I tried to use pessoa.BindingSource , then comes the address list, but I could not...
asked by 08.06.2018 / 23:26
3
answers

Delete a row in Datagrid

I'm trying to delete the line in which it has the focus of a datagrid , I've used the following code: datagrid.Rows.RemoveAt(e.RowIndex); You are returning the following message:    Uncommitted new row can not be deleted. Wha...
asked by 21.03.2015 / 15:41
0
answers

Animate Image in DataGridView

I wrote the helper class below to animate images in a DataGridView , but it is not working (images are not animated). Before that, I found some example codes in google, but they did not work either. How would I like to understand how...
asked by 08.04.2018 / 15:18
0
answers

Error inserting data into datagridview

I have the following code: public partial class PesquisaAluno : Form { List<ModelAluno> alunos; public PesquisaAluno(List<ModelAluno> alunos) { InitializeComponent(); this.alunos = alunos; } pr...
asked by 24.03.2018 / 19:19
1
answer

Display Automatic Date Sequence

I have a question regarding Datagridview: I'm doing a payroll system, in this system I have to bring the first day of the release and the final day. The problem is that, for example, I need to make a system in which every time he press the "r...
asked by 11.03.2018 / 21:33
1
answer

How to get values from the selected row in the gridview by clicking on the button

I need to make sure that when selecting a line and clicking the Approve button, the button takes all the values of the line and plays in a variable and then delete the line ThisisthecodeformyGridView<asp:GridViewID="GridView1" runat="serv...
asked by 10.01.2018 / 18:32
1
answer

How to remove table automatically generated from gridview in asp: TemplateField?

How to remove the automatically generated table from gridview in asp: TemplateField? I'm using a gridview like this <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false"> <Columns> <asp:TemplateField> <...
asked by 18.12.2017 / 12:44