strange error in DataGridView Control windows Forms
-
Hello every one, well I've encountered a really weird eror in datagridview here. I'm workin in C# 2.0 windows form application and there is a dgv(datagridview) on it that is attached to a view..I added an unbound column in it to take the quantity from the user. Now when I get the value of quantity from a cell of that column I get a null when I put 1 in that cell where is its always the correct value whenever its not 1. Can any buddy plz tell me whats happening here. I receive the correct value when its 0, 2, 3 4 ... but its a null when its 1... What should I do.. is it a bug in VS or what?? thanks in advance Rocky
-
Hello every one, well I've encountered a really weird eror in datagridview here. I'm workin in C# 2.0 windows form application and there is a dgv(datagridview) on it that is attached to a view..I added an unbound column in it to take the quantity from the user. Now when I get the value of quantity from a cell of that column I get a null when I put 1 in that cell where is its always the correct value whenever its not 1. Can any buddy plz tell me whats happening here. I receive the correct value when its 0, 2, 3 4 ... but its a null when its 1... What should I do.. is it a bug in VS or what?? thanks in advance Rocky
-
Hello every one, well I've encountered a really weird eror in datagridview here. I'm workin in C# 2.0 windows form application and there is a dgv(datagridview) on it that is attached to a view..I added an unbound column in it to take the quantity from the user. Now when I get the value of quantity from a cell of that column I get a null when I put 1 in that cell where is its always the correct value whenever its not 1. Can any buddy plz tell me whats happening here. I receive the correct value when its 0, 2, 3 4 ... but its a null when its 1... What should I do.. is it a bug in VS or what?? thanks in advance Rocky
How are you attaching it to the view, through a bindingsource or just saying DGV.DataSource=theView; Also, how are you trying to access the value of the cell?
-
How are you attaching it to the view, through a bindingsource or just saying DGV.DataSource=theView; Also, how are you trying to access the value of the cell?
I attached it through a binding source but now the problem is solved as I just deleted that column and made a new one with a different name. I bound the datagrid with the usual procedure of using a datasource u know but I still dont know what happened there but its working fine now. thank God..:cool: thanks alot! Rocky
-
can u post ur code to give an idea what u r doin
o O º(`'·.,(`'·., ☆,.·''),.·'')º O o° »·'"`»* *☆ t4ure4n ☆* *«·'"`« °o O º(,.·''(,.·'' ☆`'·.,)`'·.,)º O o°