❔ Need help with datagridview
I am working on a simple software, but whenever i add strings to the datagridview, only the first row is visible, while the data is present in other rows too, i am still new to c#, can someone help me out?
46 Replies
this is the code i use to input the data:
dataGridView1.Rows.Add(txtpuid.Text, combopro.SelectedValue.ToString(), combopro.Text, txtqt.Text,txtrate.Text, total);
You are doing this in WinForms, right?
yes i am
I have already made this code run many times and it has worked, i recently made some changes(not on the part where this datagridview is connected). After i made that change, every dgv i have in my program works like this, may it be a event stopping this?
what are you trying to ddo
but when i select it, everything is visible
i want to make the dgv rows visible
dgv?
oh
it is visible, its visible by default
only one row got added?
every row got added, but only the first row is visible until i select it
can i see a clip of it doing so?
a video clip? sure, ill send it in a few mins
can i see
code for the button event
and dgv event
for the add button?
yh
for the loadGrid function
show me
dgv click event
i am sorry but where i can i find that? As i said i am still new to c#
double click dgv in VS
for its code
i have not made any changes to it i suppose
ok hmm
weird
let me see dgv properities
ok that is extremely weird, i've never experience this
only way i could help is by checking it out over anydesk or by sending me the src
Can u do Parsec?
parsec.app?
Yea its a app...... which allows you to connect to my computer
ok
i hv to make an acc
1sec
yea sure
my acc name is darunshady#5886572
made
ok
added
send link
alr i accepted
bro
Parsec
Connect to darunshady's computer.
Parsec is a high performance remote desktop application. Connect to darunshady's computer now.
u can press connect now
can u see through?
yes
IT HAS TO DO WITH THE QUANTITY
ONLY NUMBERS ARE ACCEPTED
kk
and the rate
ok this is harder than i thought
but still extremely weird that its happening
i've never experience this
add a new dgv? replace it
try with a fresh dgv
ok but i can tell u one thing, i did make a change in the home.cs, before that all was working fine, can u please check that too?
ok
nothing useful in it
all it does is, generate new forms
brb 2sec, bathroom
Ok, what i did was, i made it so that everytime i clicked the load forms, the existing form closes and the form gets opened again to refresh it
i was not able to find any other method
but i dont think this is where the problem is, thats why i am stuck
ill try doing that, but the same happens at every form, before this it was not like that
Something to do with project settings then
I’d ctrl+z till its fixed tbh lmao
lol ok thanks anyways man🫂 Great help
Ok bye for now then🫡
ill ctrl+z my way down, and ill see if i can find a fix
Ok this is STUPID, i found the problem.......All i did was, i changed the forecolour of my home page, and boom, all the data appeared, i wanna commit not live
this thing was the , and the thing is, i changed it by accident while i was
rippppppp
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.