[RESOLVED] help with (datagridviewcell)
Im down to my last few conversions for my project
im trying to rename a cell in a datagridview to "un" if it meets certian critera
the "problem im running into is the line
userdgv["department", index] = "UN";
gives
Cannot implicitly convert type 'string' to System.Windows.Forms.DataGridViewCell'
okay so no big deal so i tried
userdgv["department", index] = (DataGridViewCell)"UN";
and got
Cannot convert type 'string' to 'System.Windows.Forms.DataGridViewCell'
some not sure how to convert it if i cant do it manualy or implicitly
Re: help with (datagridviewcell)
The DataGridView indexer (Item property in VB) is a DataGridViewCell reference. The Value property of a DataGridViewCell is a reference to the data it contains:
Code:
userdgv["department", index].Value = "UN";
Re: help with (datagridviewcell)
doh
I guess i was looking at the wrong side of that situation
ill give it a try tonight