Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: Binary File Access Pin
Luc Pattyn30-Jul-07 10:51
sitebuilderLuc Pattyn30-Jul-07 10:51 
AnswerRe: Binary File Access Pin
PIEBALDconsult30-Jul-07 10:37
mvePIEBALDconsult30-Jul-07 10:37 
GeneralRe: Binary File Access Pin
JamesBarnes30-Jul-07 11:17
JamesBarnes30-Jul-07 11:17 
QuestionNewspaper columns in control Pin
Elvis_Pretzelator30-Jul-07 9:18
Elvis_Pretzelator30-Jul-07 9:18 
JokeRe: Newspaper columns in control Pin
BoneSoft30-Jul-07 9:22
BoneSoft30-Jul-07 9:22 
AnswerRe: Newspaper columns in control Pin
Luc Pattyn30-Jul-07 9:31
sitebuilderLuc Pattyn30-Jul-07 9:31 
AnswerRe: Newspaper columns in control Pin
ekynox30-Jul-07 23:53
ekynox30-Jul-07 23:53 
AnswerRe: Gridview column data [modified] Pin
Herman<T>.Instance31-Jul-07 3:08
Herman<T>.Instance31-Jul-07 3:08 
<br />
public String GiveTxtBxCellValue(GridView gv, Int32 RowNumber, Int32 CellNumber, Int32 ControlNumber)<br />
    {<br />
        return ((TextBox)gv.Rows[RowNumber].Cells[CellNumber].Controls[ControlNumber]).Text;<br />
    }<br />
<br />
    public String GiveLabelCellValue(GridView gv, Int32 RowNumber, Int32 CellNumber)<br />
    {<br />
        return gv.Rows[RowNumber].Cells[CellNummer].Text;<br />
    }<br />


If the PK or FK field in the grid is editable it is placed in a Textbox field
In that case you use
String PrimaryKeyField = GiveTxtBxCellValue(YourGrid, YourGrid.EditIndex, PKCellnumber, 0);
mostly 0 control is the control you need.
Same for ForeignKeyField

If the PK and FK are NOn-editable in your GridView you use
String PrimaryKeyField = GiveLabelCellValue(YourGrid, YourGrid.EditIndex, PKCellnumber);


-- modified at 2:23 Friday 3rd August, 2007
QuestionSQL Data Pin
Saiyed Alam30-Jul-07 8:30
Saiyed Alam30-Jul-07 8:30 
AnswerRe: SQL Data Pin
BoneSoft30-Jul-07 9:55
BoneSoft30-Jul-07 9:55 
QuestionTab Order Pin
Saiyed Alam30-Jul-07 8:08
Saiyed Alam30-Jul-07 8:08 
AnswerRe: Tab Order Pin
Martin#30-Jul-07 8:09
Martin#30-Jul-07 8:09 
GeneralRe: Tab Order Pin
Saiyed Alam30-Jul-07 8:15
Saiyed Alam30-Jul-07 8:15 
AnswerRe: Tab Order Pin
Luis Alonso Ramos30-Jul-07 8:44
Luis Alonso Ramos30-Jul-07 8:44 
AnswerRe: Tab Order Pin
Paul Conrad30-Jul-07 10:44
professionalPaul Conrad30-Jul-07 10:44 
QuestionReference as a 'pointer' to a value type Pin
kildareflare30-Jul-07 7:37
kildareflare30-Jul-07 7:37 
AnswerRe: Reference as a 'pointer' to a value type Pin
Bert delaVega30-Jul-07 8:02
Bert delaVega30-Jul-07 8:02 
AnswerRe: Reference as a 'pointer' to a value type Pin
Luc Pattyn30-Jul-07 8:15
sitebuilderLuc Pattyn30-Jul-07 8:15 
GeneralRe: Reference as a 'pointer' to a value type [modified] Pin
kildareflare30-Jul-07 9:09
kildareflare30-Jul-07 9:09 
GeneralRe: Reference as a 'pointer' to a value type Pin
Luc Pattyn30-Jul-07 9:12
sitebuilderLuc Pattyn30-Jul-07 9:12 
GeneralRe: Reference as a 'pointer' to a value type Pin
kildareflare30-Jul-07 9:17
kildareflare30-Jul-07 9:17 
GeneralRe: Reference as a 'pointer' to a value type Pin
Cfer8330-Jul-07 9:37
Cfer8330-Jul-07 9:37 
QuestionCheckSignature of SignedXml returns false Pin
amit_k_gupta30-Jul-07 7:37
amit_k_gupta30-Jul-07 7:37 
QuestionXML serialization - Class and Property [modified] Pin
User 665830-Jul-07 7:25
User 665830-Jul-07 7:25 
AnswerRe: XML serialization - Class and Property Pin
Martin#30-Jul-07 8:02
Martin#30-Jul-07 8:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.