What if you instead having the Add Information on the same form, having on a separated form? How do you transfer the Added Info to the DataGridView table?
is it possible to add a row to datagrid from textbox without a btnAdd_Click event? I mean, I want to add a row automatically right after textbox input. thanks
for (int i = 0; i < dataGridView2.Rows.Count; i++) { if (textBox1.Text == dataGridView2.Rows[i].Cells[0].Value.ToString()) { MessageBox.Show("duplicated!"); return; } }
kindly guide me to deal with the following error occurring in trying the above method :
input array is longer than the number of columns in this table
i love this channel thanks man you are the best
it solved my huge problem.......................................................... Thank uuuuuuuuuuuuuu
What if you instead having the Add Information on the same form, having on a separated form? How do you transfer the Added Info to the DataGridView table?
public DataGridView dataGridView1 { get; set; }
thank you for explain...
Q/can i connect it with db?
I can replace some of those text boxes with combo boxes and it'll still work similarly, right?
is there a way to keep the info in the grid after the program is exited?
Hi. This code doesn't add multiple rows in the DataGridView, it only adds one row and keeps overwriting it. Is there any solution to this problem?
Thanks!!! for your help!!!
\How to create a new row so the gridview will select the row you just created? help me. Thank uuuuuuuuuuuuuu
superb boss, exact what i want to. thanks.
is it possible to add a row to datagrid from textbox without a btnAdd_Click event? I mean, I want to add a row automatically right after textbox input. thanks
You Can Use "Enter" Events
thanks bro you are the best
Good job. How can you code to prevent duplicate entry in this application please?
for (int i = 0; i < dataGridView2.Rows.Count; i++)
{
if (textBox1.Text == dataGridView2.Rows[i].Cells[0].Value.ToString())
{
MessageBox.Show("duplicated!");
return;
}
}
me ajudou muito, obrigado
from: brazil :)
I want to use this technique in visual basic 6.0 Please help me
How to export this file to MS-Excel and Convert to pdf
good work !!!
'Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound.'
Thanks
Thanks :)
I do everything like you did
but I have an error
the error is: The input array is longer than the number of columns in this table
please help me
Same here, can't find the fault...
Amazing
wah wah
THE BEST.
THANKS HELPED ME.
thanks :)