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
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; }
I can replace some of those text boxes with combo boxes and it'll still work similarly, right?
thank you for explain...
Q/can i connect it with db?
it solved my huge problem.......................................................... Thank uuuuuuuuuuuuuu
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?
i love this channel thanks man you are the best
is there a way to keep the info in the grid after the program is exited?
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
\How to create a new row so the gridview will select the row you just created? help me. Thank uuuuuuuuuuuuuu
Thanks!!! for your help!!!
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;
}
}
superb boss, exact what i want to. thanks.
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
'Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound.'
me ajudou muito, obrigado
from: brazil :)
thanks bro you are the best
good work !!!
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...
Thanks :)
Amazing
wah wah
THE BEST.
THANKS HELPED ME.
thanks :)