<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>Betoxz - Varre Grid infragistics pegando valores</Title>
      <Shortcut>Betoxz-VarreGridinfragisticspegandovalores</Shortcut>
      <Description>Betoxz - Varre Grid infragistics pegando valores [C#]</Description>
      <Author>carlos martins</Author>
      <HelpUrl>/PreviewSnippet.aspx?SnippetID=a882afe0-f7e3-47ec-b920-929f68466372</HelpUrl>
      <SnippetTypes>
        <SnippetType>SurroundsWith</SnippetType>
      </SnippetTypes>
    </Header>
    <Snippet>
      <Code Language="csharp"><![CDATA[function ValidaCamposGride()
{
    var UltraWebGridPedidoItens = igtbl_getGridById("<%=UltraWebGridPedidoItens.ClientID %>");
    var result = false;
    for(var index = 0; index < UltraWebGridPedidoItens.Rows.length ; index++)
    {
        result = ( UltraWebGridPedidoItens.Rows.getRow(index).getCellFromKey('notafiscal').getValue()!= null) ? true : false;
        if(!result)
        {
            alert((index+1) + "º Item Falta Nº NF!");
            return false;
        }
    }
    return true;
}]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>