Wednesday, 15 June 2011

sql - How to use checkbox to select my data -



sql - How to use checkbox to select my data -

i using vb.net microsoft sql want retrieve info checkbox selected how perform it? code have

class="lang-vb prettyprint-override">dim chk new datagridviewcheckboxcolumn() datagridview1.columns.add(chk) chk.headertext = "select" chk.name = "lol" sql.runquery("select id,jobposition,requiredqualification,salary, description,jobexpyear vacancy jobposition in (select jobposition employer eid = '" & id & "')") if sql.sqlds.tables.count > 0 datagridview1.datasource = sql.sqlds.tables(0) end if

i have checkbox within info grid, how phone call it?

i'm not sure if need, question not clear plenty me. see if helps:

dim status string = string.empty each row datagridviewrow in datagridview1.rows status += directcast(row.cells(0), datagridviewcheckboxcell).selected.tostring + ", " next if not string.isnullorempty(condition) 'remove lastly splitter status = condition.substring(0, condition.length - 2) end if

sql vb.net

No comments:

Post a Comment